{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication\8_ReplicationLog.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 5 Sep 2025, 09:23:45
{txt}
{com}. 
. /*Create subfiles for \Figures & \Tables*/
. 
. /*************************************************************************************************/
. /*Set-up: Coding and Labeling of Variables to Crate Working Data
> Merge in other data sets: Line 7
> Relabeling of intercept data phase 1: Line 17
> Generate intercept variables used in random assignment: Line 53
> Recoding and relabeling of endline survey data: Line 135
> Creation of election_working.dta: Line 585
> Creation of codebook: Line 586
> */
. do 3_VNA_Setup.do
{txt}
{com}. /*Prepared Using STATA 16: September 16, 2023*/
. cap cd "C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"
{txt}
{com}. use "10_Final data - all phases v2_ANON.dta", clear
{txt}
{com}. 
. drop Questionnaire_order respid_A 
{txt}
{com}. 
. *Merge with undergrad major dataset & questionnaire order
. merge 1:1 assignedID using "11_Undergrad major recoded.dta" 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}           1,021{txt}  (_merge==3)
{col 5}{hline 41}

{com}. merge 1:1 assignedID using "12_Questionnaire_order.dta", generate(merge2) 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (merge2==1)
{col 9}from using{col 30}{res}               1{txt}  (merge2==2)

{col 5}Matched{col 30}{res}           1,021{txt}  (merge2==3)
{col 5}{hline 41}

{com}. merge m:1 origin_A using "14_region.dta", generate(_region) 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               1{txt}  (_region==1)
{col 9}from using{col 30}{res}               0{txt}  (_region==2)

{col 5}Matched{col 30}{res}           1,021{txt}  (_region==3)
{col 5}{hline 41}

{com}. destring votingdivision,replace 
{txt}votingdivision: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}
{com}. merge m:1 votingdivision using "13_ElectoralDistrictsV2.dta", generate(merge3)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}             315
{txt}{col 9}from master{col 30}{res}             315{txt}  (merge3==1)
{col 9}from using{col 30}{res}               0{txt}  (merge3==2)

{col 5}Matched{col 30}{res}             707{txt}  (merge3==3)
{col 5}{hline 41}

{com}. replace region=1 if region==2
{txt}(2 real changes made)

{com}. drop _merge merge2 merge3
{txt}
{com}. 
. 
. /*Label Intercept Interview*/
. lab var consent "Gave consent to be surveyed=1"
{txt}
{com}. lab var livingsituation_rs_A "District where respondent was living during intercept interview"
{txt}
{com}. lab var origin_A "Home province at intercept interview"
{txt}
{com}. lab var university "University respondent was attending during intercept interview"
{txt}
{com}. lab var major "Major in Vietnamese at intercept interview"
{txt}
{com}. lab var interviewloc "Location of intercept interview"
{txt}
{com}. lab var livingsituation "Residency status in Ho Chi Minh City at intercept interview" 
{txt}
{com}. lab var livingsituation_rs "District of residency in Ho Chi Minh City at intercept interview" 
{txt}
{com}. lab var birthyear "Birth year"
{txt}
{com}. lab var gender "Gender, Male (Nam); Female (Nữ) (VNese)"
{txt}
{com}. lab var bike_own "Number of bikes owned at intercept interview (VNese)"
{txt}
{com}. lab var motorbike_own "Number of motorbikes owned at intercept interview (VNese)"
{txt}
{com}. lab var car_own "Number of cars owned at intercept interview (VNese)"
{txt}
{com}. lab var truck_own "Number of trucks owned at intercept interview (VNese)"
{txt}
{com}. lab var famingov_non "No family in government=1"
{txt}
{com}. lab var famingov_parents "Parents in government=1"
{txt}
{com}. lab var famingov_uncleaunt "Uncle or aunt in government=1"
{txt}
{com}. lab var famingov_grandparents "Grandparents in government=1"
{txt}
{com}. lab var famingov_siblings "Siblings in government=1"
{txt}
{com}. lab var famingov_cousins "Cousins in government=1"
{txt}
{com}. lab var famingov_friends "Friends in government=1"
{txt}
{com}. lab var selfingov_none "Respondent not in government=1"
{txt}
{com}. lab var selfingov_yu "Respondent in youth union=1"
{txt}
{com}. lab var selfingov_vcp "Respondent in party union=1"
{txt}
{com}. lab var politicsinterest "Interest (hứng thú ) in politics:  Rất (very), Không nhiều (not much), Hơi (a little), Hoàn toàn không (not at all)"
{txt}note: label truncated to 80 characters

{com}. lab var electiondateawareness "Did respondent know election date? đúng (correct), sai (incorrect)"
{txt}
{com}. lab var electionawareness "What does respondent know about election?"
{txt}
{com}. lab var candidateawareness "Did respondent know candidates at intercept?"
{txt}
{com}. lab var candidateawareness_specific "Could respondent name candidates at intercept?"
{txt}
{com}. lab var nextphaseconsent "Respondent agreed to receive election packet during intercept interview"
{txt}
{com}. lab var registereddate_fri "Packet sent by registered mail on Friday=1"
{txt}
{com}. lab var registereddate_sat "Packet sent by registered mail on Saturday=1"
{txt}
{com}. lab var registereddate_sun "Packet sent by registered mail on Sunday=1"
{txt}
{com}. 
. 
. /*Generate Important New Variables for Random Assignment*/
. 
. /*Dummy for HCMC*/
. generate HCMC=1 if origin_A=="TP Hồ Chí Minh"
{txt}(627 missing values generated)

{com}. replace HCMC=0 if HCMC==.
{txt}(627 real changes made)

{com}. lab var HCMC "Respondent from Ho Chi Minh City=1"
{txt}
{com}. 
. /*Dummy for electoral district*/
. generate votingdivision2=region if HCMC==0
{txt}(396 missing values generated)

{com}. replace votingdivision2=(votingdivision+10) if HCMC==1
{txt}(259 real changes made)

{com}. lab var votingdivision2 "Electoral district of respondent"
{txt}
{com}. lab var votinglocation "District in which respondent voted"
{txt}
{com}. lab var votingdivision "Voting division ID in HCMC "
{txt}
{com}. 
. 
. /*Re-create STRATA used in sampling fle based on political knowledge and interest*/
. egen strata_new=group(polibg politicsinterest_rc)
{txt}(1 missing value generated)

{com}. pwcorr strata strata_new

             {txt}{c |}   strata strata~w
{hline 13}{c +}{hline 18}
      strata {c |} {res}  1.0000 
  {txt}strata_new {c |} {res}  1.0000   1.0000 
{txt}
{com}. drop strata_new
{txt}
{com}. lab var strata "Sampling strata based on family in government and political interest (1-6)"
{txt}
{com}. label define strata 1 "No family, no interest" 2 "No family, not much interest" 3 "No family, some interest" 4 "Yes family, no interest" 5 "Yes family, not much interest" 6 "Yes family, some or a lot of interest"
{txt}
{com}. label values strata strata
{txt}
{com}. /*Generate indidividual STRATA dummies*/
. tab strata, gen(strata)

   {txt}Sampling strata based on family in {c |}
    government and political interest {c |}
                                (1-6) {c |}      Freq.     Percent        Cum.
{hline 38}{c +}{hline 35}
               No family, no interest {c |}{res}        105       10.28       10.28
{txt}         No family, not much interest {c |}{res}        217       21.25       31.54
{txt}             No family, some interest {c |}{res}        454       44.47       76.00
{txt}              Yes family, no interest {c |}{res}         21        2.06       78.06
{txt}        Yes family, not much interest {c |}{res}         92        9.01       87.07
{txt}Yes family, some or a lot of interest {c |}{res}        132       12.93      100.00
{txt}{hline 38}{c +}{hline 35}
                                Total {c |}{res}      1,021      100.00
{txt}
{com}. lab var strata1 "No family, no interest" 
{txt}
{com}. lab var strata2 "No family, not much interest" 
{txt}
{com}. lab var strata3 "No family, some interest" 
{txt}
{com}. lab var strata4 "Yes family, no interest" 
{txt}
{com}. lab var strata5 "Yes family, not much interest" 
{txt}
{com}. lab var strata6 "Yes family, some or a lot of interest"
{txt}
{com}. 
. *Recoding relevant variables to English
. label var respid "Respondent ID"
{txt}
{com}. drop university_id gender_rc 
{txt}
{com}. encode university, gen (university_id)
{txt}
{com}. label define university_id 1 "Bach Khoa University" 2 "University of Science" 3 "University of Social Sciences & Humanities" 4 "University of Economics HCMC" 5 "University of Architecture HCMC" 6 "Open University HCMC" 7 "Banking University HCMC" 8 "University of Pedagogy HCMC" 9 "University of Pharmacy HCMC",replace
{txt}
{com}. label values university_id university_id
{txt}
{com}. encode gender, gen (gender_rc)
{txt}
{com}. label define gender_rc 1 "Male" 2 "Female",replace
{txt}
{com}. label var gender_rc "Gender"
{txt}
{com}. lab var consent "Gave consent to be surveyed=1"
{txt}
{com}. 
. 
. *Generate Political background variable
. drop polibg polibg_yes polibg_no
{txt}
{com}. destring famingov_none famingov_parents famingov_uncleaunt famingov_grandparents famingov_siblings famingov_cousins famingov_friends, replace
{txt}famingov_none: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(304 missing values generated)
{res}{txt}famingov_parents: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(887 missing values generated)
{res}{txt}famingov_uncleaunt: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(964 missing values generated)
{res}{txt}famingov_grandparents: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(1003 missing values generated)
{res}{txt}famingov_siblings: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(1001 missing values generated)
{res}{txt}famingov_cousins: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(1007 missing values generated)
{res}{txt}famingov_friends: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(1013 missing values generated)
{res}{txt}
{com}. egen polibg_yes=rmax(famingov_parents famingov_uncleaunt famingov_grandparents famingov_siblings famingov_cousins famingov_friends)
{txt}(775 missing values generated)

{com}. lab var polibg_yes "Has family member in government=1"
{txt}
{com}. gen polibg_no=0 if famingov_none==1
{txt}(305 missing values generated)

{com}. lab var polibg_no "Does not have family member in government=0"
{txt}
{com}. egen polibg=rowtotal(polibg_yes polibg_no)
{txt}
{com}. label define polibg2 0 "No" 1 "Yes"
{txt}
{com}. label val polibg polibg2
{txt}
{com}. label var polibg "Has at least one family member/friend in VCP or VN government?"
{txt}
{com}. 
. *Generate Political status 
. drop polistat polistat_yes polistat_no
{txt}
{com}. destring selfingov_yu selfingov_vcp selfingov_none, replace
{txt}selfingov_yu: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(136 missing values generated)
{res}{txt}selfingov_vcp: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(1018 missing values generated)
{res}{txt}selfingov_none: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(889 missing values generated)
{res}{txt}
{com}. egen polistat_yes=rmax(selfingov_yu selfingov_vcp)
{txt}(134 missing values generated)

{com}. lab var polistat_yes "Respondent in party or youth union=1"
{txt}
{com}. gen polistat_no=0 if selfingov_none==1
{txt}(891 missing values generated)

{com}. lab var polistat_no "Respondent not in party or youth union=1"
{txt}
{com}. egen polistat=rowtotal(polistat_yes polistat_no)
{txt}
{com}. label define polistat2 0 "No" 1 "Yes"
{txt}
{com}. label val polistat polistat2
{txt}
{com}. label var polistat "Self at least in one VN governmental organization/VCP?"
{txt}
{com}. 
. *Generate Political interest variable
. drop politicsinterest_rc
{txt}
{com}. encode politicsinterest, gen(politicsinterest_rc)
{txt}
{com}. replace politicsinterest_rc=3 if politicsinterest_rc==4
{txt}(34 real changes made)

{com}. label define politicsinterest_rc 1 "None" 2 "Not much" 3 "Some/A good deal",replace
{txt}
{com}. label var politicsinterest_rc "Generally speaking, how much interest do you usually have in politics?"
{txt}
{com}. 
. *Generate Election Awareness variable
. drop electiondateawareness_rc
{txt}
{com}. encode electiondateawareness, gen(electiondateawareness_rc)
{txt}
{com}. label define electiondateawareness_rc 1 "No" 2 "Yes",replace
{txt}
{com}. label val electiondateawareness_rc electiondateawareness_rc
{txt}
{com}. label var electiondateawareness_rc "Know what is the exact Election date?"
{txt}
{com}. 
. 
. /*Recoding and labeling of Endline Survey Data*/
. 
. *This variable is used for connecting all datasets together*
. label var assignedID "Assigned experiment ID" 
{txt}
{com}. 
. 
. *Election_result - used to record when result was announced
. label define Election_result 0 "Not yet" 1"Yes"
{txt}
{com}. label var Election_result "Election result announcement"
{txt}
{com}. 
. 
. *Questionnaire_order - used to record when questionnaire order was changed
. label define Questionnaire_order 1"Q2 - Q4 only answered if vote in-person and behind Q12" 2 "Q2 - Q4 right after Q1"
{txt}
{com}. label var Questionnaire_order "Questionnaire order"
{txt}
{com}. 
. *P3 - used to record if respondent has participated in Phase 3
. label var P3 "Participated in Phase 3?"
{txt}
{com}. 
. *p2_physicaldelivery - used to record physical treatment in phase 2
. label var p2_physicaldelivery "Received physical treatment in Phase 2"
{txt}
{com}. 
. *p2_Qrdelivery - used to record digital treatment in phase 2
. label var p2_Qrdelivery "No. of times open QR code in Phase 2"
{txt}
{com}. 
. drop pic
{txt}
{com}. drop Q8_recode Q9_recode
{txt}
{com}. drop Q8Q9_recodeconfidence
{txt}
{com}. 
. *Q5
. encode Q5, gen (Q5_en)
{txt}
{com}. label define Q5_en 1"I did not vote in the last election" 2"I voted via another person in the last election" 3"I voted in-person in the last election",replace
{txt}
{com}. label values Q5_en Q5_en
{txt}
{com}. label var Q5_en "Please choose the statement that is most applicable to you in last May election"
{txt}
{com}. label var Q5 "Please choose the statement that is most applicable to you in last May election (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. 
. *Q8
. encode Q8, gen (Q8_en)
{txt}
{com}. label define Q8_en 1 "Yes, I remember at least one name of the candidates I voted for" 2 "No, I remember none of the candidates' names",replace
{txt}
{com}. label var Q8_en "Can you name one or more of the candidates you voted for in the last election?"
{txt}
{com}. label var       Q8b_name_NA_HCM "       No. of names in HCM in NA       "
{txt}
{com}. label var       Q8b_name_PC_HCM "       No. of names in HCM in PC       "
{txt}
{com}. label var       Q8b_name_NA_origin      "       No. of names in hometown in NA  "
{txt}
{com}. label var       Q8b_name_PC_origin      "       No. of names in hometown in PC  "
{txt}
{com}. label var       Q8b_name_NA_others      "       No. of names in other places in NA      "
{txt}
{com}. label var       Q8b_name_PC_others      "       No. of names in other places in PC      "
{txt}
{com}. label var Q8 "Do you remember candidate's name? (VNese)"
{txt}
{com}. 
. *Q9
. encode Q9, gen (Q9_en)
{txt}
{com}. label define Q9_en 1 "Yes, I remember at least one positions of the candidates I voted for" 2 "No, I remember none of the candidates' positions",replace
{txt}
{com}. label var Q9_en "Can you name the positions of one or more of the candidates you voted for?"
{txt}
{com}. label var       Q9b_pos_NA_HCM  "       No. of positions in HCM in NA   "
{txt}
{com}. label var       Q9b_pos_PC_HCM  "       No. of positions in HCM in PC   "
{txt}
{com}. label var       Q9b_pos_NA_origin       "       No. of positions in hometown in NA      "
{txt}
{com}. label var       Q9b_pos_PC_origin       "       No. of positions in hometown in PC      "
{txt}
{com}. label var       Q9b_pos_NA_others       "       No. of positions in other places in NA  "
{txt}
{com}. label var       Q9b_pos_PC_others       "       No. of positions in other places in PC  "
{txt}
{com}. label var Q9 "Do you remember a position that you voted for? (VNese)"
{txt}
{com}. 
. *Q8Q9 - to mark case where our confidence in recoding is low
. label define Q8Q9_recodeconfidence 0 "Confident" 2 "Not too confident",replace
{txt}
{com}. 
. *Q6 Q7 Q10 Q11 Q12
. drop Q6 Q7 Q10 Q11 Q12
{txt}
{com}. label var       Q7_1    "       I want to exercise my right of suffrage "
{txt}
{com}. label var       Q7_2    "       I want to contribute to my country      "
{txt}
{com}. label var       Q7_3    "       I want my thoughts and interests to be represented in the VNA   "
{txt}
{com}. label var       Q7_4    "       I was inspired through the state's information about the election       "
{txt}
{com}. label var       Q7_5    "       I am concerned about a particular issue that I want resolved in the VNA "
{txt}
{com}. label var       Q7_6    "       The government mobilized me to vote     "
{txt}
{com}. label var       Q6_1    "       I don't know about the election "
{txt}
{com}. label var       Q6_2    "       I didn't have time on the day of the election   "
{txt}
{com}. label var       Q6_3    "       My parents told me that they would vote on my behalf    "
{txt}
{com}. label var       Q6_4    "       I wasn't registered as a voter for the election "
{txt}
{com}. label var       Q6_5    "       I didn't want to vote   "
{txt}
{com}. label var       Q11_1   "       I do not have a specific reason, and just choose at random      "
{txt}
{com}. label var       Q11_2   "       His/her name was on top of the list     "
{txt}
{com}. label var       Q11_3   "       My parents/relative/friends instructed me to vote for the candidates    "
{txt}
{com}. label var       Q11_4   "       The voting staff instructed me to vote for the candidates       "
{txt}
{com}. label var       Q11_5   "       I know of him/her personally    "
{txt}
{com}. label var       Q11_6   "       I believe he/she will bring personal benefits to me or my immediate family      "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_7   "       I believe he/she will bring about positive changes for myself, my commmunity, and my country    "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_8   "       I believe the candidates would represent the voice, concerns, and interest of mine at the VNA   "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_9   "       His/her professional qualifications (education, experience) appealed to me      "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_10  "       His/her gender appealed to me (male or female)  "
{txt}
{com}. label var       Q11_11  "       His/her age (young or senior)   "
{txt}
{com}. label var       Q11_12  "       His/her race (Kinh or other ethnicities)        "
{txt}
{com}. label var       Q11_13  "       His/her affiliation with a certain agency (Women Union, Youth Union, Communist Party, etc)      "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_14  "       His/her ability to represent me (Ex: the staff currently working at a locality) "
{txt}note: label truncated to 80 characters

{com}. label var       Q11_15  "       I want to create opportunities for candidates that don't have advantages        "
{txt}note: label truncated to 80 characters

{com}. label var       Q10_1   "       The voting poll is close to my house, which is convenient for me and my family  "
{txt}note: label truncated to 80 characters

{com}. label var       Q10_2   "       The voting day is on Sunday, which is convenient for me and my family   "
{txt}
{com}. label var       Q10_3   "       The election officials are supportive and helpful       "
{txt}
{com}. label var       Q10_4   "       The election information displayed at the polls are comprehensive and insightful        "
{txt}note: label truncated to 80 characters

{com}. label var       Q12_1   "       A voter voting on behalf of many voters (families, friends, etc)        "
{txt}
{com}. label var       Q12_2   "       The principle of 'secret vote' is not respected (no one is allowed to look at your ballot)      "
{txt}note: label truncated to 80 characters

{com}. label var       Q12_3   "       The staff instructs voters to vote for particular candidates    "
{txt}
{com}. label var       Q12_4   "       The staff refuses to provide a new ballot when sb's is broken   "
{txt}
{com}. label var       Q12_5   "       No negative phenomenon  "
{txt}
{com}. 
. *Q2 Q3 Q4
. encode Q2, gen (Q2_en)
{txt}
{com}. label define Q2_en 1 "I intend to keep updated on the VNA through the news/highlights on TV" 2"I intend to watch the debates on television/social media platforms" 3 "I do not intend to and I do not have interest in keeping update with the VNA debates", replace
{txt}
{com}. label var Q2_en "After the election, do you plan to watch/observe news on the upcoming VNA meetings?"
{txt}note: label truncated to 80 characters

{com}. label var Q4 "On 0-10, how confident are you that the newly elected VNA will be responsive to your personal policy objectives or those of your community ?"
{txt}note: label truncated to 80 characters

{com}. label var       Q3_1    "       Meeting sessions at the general assembly"
{txt}
{com}. label var       Q3_2    "       Minister hearings sessions"
{txt}
{com}. label var       Q3_3    "       Voting sessions on draft laws"
{txt}
{com}. label var       Q3_4    "       Discussion in specialized/select committees"
{txt}
{com}. label var       Q3_5    "       Vote of confidence for cabinet members"
{txt}
{com}. label var       Q3_6    "       I don't plan on watching/observing"
{txt}
{com}. lab var Q2 "After the election, do you plan to watch/observe news on the upcoming VNA meetings? (VNese)"
{txt}note: label truncated to 80 characters

{com}. lab var Q3 "Which activities do you intend to watch in VNA (VNese)"
{txt}
{com}. 
. *Q14 Q16 Q18
. label var       Q14_1   "       State organizations     "
{txt}
{com}. label var       Q14_2   "       Youth Communist Union   "
{txt}
{com}. label var       Q14_3   "       University      "
{txt}
{com}. label var       Q14_4   "       News organization       "
{txt}
{com}. label var       Q14_5   "       KOL     "
{txt}
{com}. label var       Q14_6   "       Nothing at all  "
{txt}
{com}. label var       Q16_1   "       Mainstream online news website  "
{txt}
{com}. label var       Q16_2   "       State's online resources        "
{txt}
{com}. label var       Q16_3   "       State's sms messages    "
{txt}
{com}. label var       Q16_4   "       Offline newspaper       "
{txt}
{com}. label var       Q16_5   "       Television      "
{txt}
{com}. label var       Q16_6   "       Social media    "
{txt}
{com}. label var       Q16_7   "       Leaflet "
{txt}
{com}. label var       Q16_8   "       Banners "
{txt}
{com}. label var       Q16_9   "       Public speakers "
{txt}
{com}. label var       Q18_1   "       Infographic     "
{txt}
{com}. label var       Q18_2   "       General news    "
{txt}
{com}. label var       Q18_3   "       Interview with prominent speakers       "
{txt}
{com}. label var       Q18_4   "       Creative videos "
{txt}
{com}. label var       Q18_5   "       Traditional photos (with socialist propaganda themes from the state)    "
{txt}
{com}. label var       Q18_6   "       Creative photos "
{txt}
{com}. label var       Q18_7   "       Online events (hashtag trandes, facebaook avatar campaigns, etc)
{txt}
{com}. label var Q14 "Where do you get information about the elections? (VNese)"
{txt}
{com}. label var Q16 "What type of news sources did you use? (VNese)"
{txt}
{com}. label var Q18 "What type of online sources did you use? (VNese)"
{txt}
{com}. 
. *Q13
. encode Q13, gen (Q13_en)
{txt}
{com}. label define Q13_en 1"I do not remember" 2"I did not do any thing related to election prior to voting" 3"I did not do research, but received information from other people about the Election prior to voting" 4 "I did some research on Election and Candidate information prior to voting" 5 "I did a lot of research on Election and Candidate information prior to voting",replace
{txt}
{com}. label var Q13_en "Please select your behavior from the time up to Election date?"
{txt}
{com}. label var Q13 "Please select your behavior from the time up to Election date? (VNese)"
{txt}
{com}. 
. *Q15
. encode Q15, gen (Q15_en)
{txt}
{com}. label define Q15_en 1 "News organization" 3 "Nothing at all" 4"Key opinion leaders/celebrity (KOL)" 6"University" 7"State organization" 10 "Youth Communist Union",replace
{txt}
{com}. label var Q15_en "Out of the selected media sources in Q14, which one do you most prefer to see election information? (Select only one)"
{txt}note: label truncated to 80 characters

{com}. label var Q15 "Out of the selected media sources in Q14, which one do you most prefer to see election information? (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. *Q17
. encode Q17, gen (Q17_en)
{txt}
{com}. label define Q17_en 1 "Banners" 2"Offline newspaper" 3"Mainstream online news website" 4"State's online resources" 7"Public speakers" 8"Social media" 10 "State's SMS messages" 11 "Television" 12 "Leaflet", replace
{txt}
{com}. label var Q17_en "Through which media channels in Q16 that you have seen election information?"
{txt}
{com}. label var Q17 "Through which media channels in Q16 that you have seen election information? (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. *Q19
. encode Q19, gen (Q19_en)
{txt}
{com}. label define Q19_en 1"Creative video" 2 "Creative photos" 3"Traditional photos (with socilalist propaganda themes from the state)" 4"Infographic" 6"Interview with prominent speakers" 7 "Online events (hashtag trandes, facebaook avatar campaigns, etc)" 8 "General news", replace
{txt}
{com}. label var Q19_en "What kind of information modes in Q18 did you prefer the most to see on the selected channels? (Select only one)"
{txt}note: label truncated to 80 characters

{com}. label var Q19 "What kind of information modes in Q18 did you prefer the most to see on the selected channels? (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. *Q20
. encode Q20, gen (Q20_en)
{txt}
{com}. label define Q20_en 3 "National Assembly's achievements, duties, roles, etc" 4"Information about legislation to be considered by the VNA " 5"Information about specific candidates" 6"Voting procedures, election laws, logistic information",replace
{txt}
{com}. label var Q20_en "Which information/content did you see the most through the selected channels/sources above?"
{txt}note: label truncated to 80 characters

{com}. label var Q20 "Which information/content did you see the most through the selected channels/sources above? (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. *Q21
. encode Q21, gen (Q21_en)
{txt}
{com}. label define Q21_en 1 "Both email and physical" 2"Via physical" 3"Via email" 4"I did not receieve anything",replace
{txt}
{com}. label var Q21_en "CRUS sent you some information package prior to the Election. You received:"
{txt}
{com}. label var Q21 "CRUS sent you some information package prior to the Election. You received: (VNese)"
{txt}note: label truncated to 80 characters

{com}. 
. lab var Q22 "How did you access the information in the election package (VNese)?"
{txt}
{com}. lab var Q23 "Did you read the information in the election package if you received in person (VNese)?"
{txt}note: label truncated to 80 characters

{com}. 
. *Q24
. encode Q24, gen (Q24_en)
{txt}
{com}. label define Q24_en 1 "T1: Civic Duty" 2"T3: Legislative Docket" 3"T2: Candidate Biography",replace
{txt}
{com}. label var Q24_en "Q24. What was the information you recieved about?"
{txt}
{com}. label var Q24 "Q24. What was the information you recieved about? (VNese)"
{txt}
{com}. 
. lab var Q23 "Did you pay attention to the details in the election package if you used QR code (VNese)?"
{txt}note: label truncated to 80 characters

{com}. lab var Q25 "Did you pay attention to the details in the election package if you used oher approach (VNese)?"
{txt}note: label truncated to 80 characters

{com}. 
. *Q26
. encode Q26, gen (Q26_en)
{txt}
{com}. label define Q26_en 1 "T1: Civic Education" 2"T3: Legislative Docket" 3"T2: Candidate Biography",replace
{txt}
{com}. label var Q26_en "Q26. What was the information you recieved about?"
{txt}
{com}. label var Q26 "Q26. What was the information you recieved about? (VNese)"
{txt}
{com}. 
. lab var Q27 "Do you have anything else to add? (VNese)"
{txt}
{com}. lab var Q28 "Are you willing to be contacted again (VNese)"
{txt}
{com}. 
. drop treatment_group
{txt}
{com}. generate treatment_group=0 if control==1
{txt}(768 missing values generated)

{com}. replace treatment_group=1 if T1==1
{txt}(255 real changes made)

{com}. replace treatment_group=2 if T2==1
{txt}(254 real changes made)

{com}. replace treatment_group=3 if T3==1
{txt}(258 real changes made)

{com}. lab var treatment_group "Treatment Group"
{txt}
{com}. label define group 0 "Control" 1 "T1: Civic Education" 2 "T2: Candidate Biography"  3 "T3: Legislative Docket",replace
{txt}
{com}. label val treatment_group group
{txt}
{com}. tab treatment_group

        {txt}Treatment Group {c |}      Freq.     Percent        Cum.
{hline 24}{c +}{hline 35}
                Control {c |}{res}        254       24.88       24.88
{txt}    T1: Civic Education {c |}{res}        255       24.98       49.85
{txt}T2: Candidate Biography {c |}{res}        254       24.88       74.73
{txt} T3: Legislative Docket {c |}{res}        258       25.27      100.00
{txt}{hline 24}{c +}{hline 35}
                  Total {c |}{res}      1,021      100.00
{txt}
{com}. lab var control "Control Group=1"
{txt}
{com}. 
. drop age male motorbikes
{txt}
{com}. generate age=2021-birthyear
{txt}(1 missing value generated)

{com}. generate male=1 if gender=="Nam"
{txt}(526 missing values generated)

{com}. replace male=0 if male==.
{txt}(526 real changes made)

{com}. generate motorbikes=0 if motorbike_own=="Không sở hữu"
{txt}(999 missing values generated)

{com}. replace motorbikes=1 if motorbike_own=="1 chiếc"
{txt}(189 real changes made)

{com}. replace motorbikes=2 if motorbike_own=="2 chiếc"
{txt}(242 real changes made)

{com}. replace motorbikes=3 if motorbike_own=="Nhiều hơn 2 chiếc"
{txt}(567 real changes made)

{com}. 
. 
. *Exposure variable define
. 
. gen receive=1
{txt}
{com}. replace receive=0 if p2_physicaldelivery=="Failed"
{txt}(102 real changes made)

{com}. replace receive=0 if p2_Qrdelivery==0
{txt}(780 real changes made)

{com}. replace receive=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label define map_check 1"True" 0"False",replace
{txt}
{com}. label val receive  map_check
{txt}
{com}. label var receive "Received info pack"
{txt}
{com}. 
. gen correctrecall=0
{txt}
{com}. replace correctrecall=1 if treatment_group==1 & Q24_en==1
{txt}(93 real changes made)

{com}. replace correctrecall=1 if treatment_group==1 & Q26_en==1
{txt}(35 real changes made)

{com}. replace correctrecall=1 if treatment_group==2 & Q24_en==3
{txt}(74 real changes made)

{com}. replace correctrecall=1 if treatment_group==2 & Q26_en==3
{txt}(32 real changes made)

{com}. replace correctrecall=1 if treatment_group==3 & Q24_en==2
{txt}(14 real changes made)

{com}. replace correctrecall=1 if treatment_group==3 & Q26_en==2
{txt}(10 real changes made)

{com}. label define map_check 1"True" 0"False",replace
{txt}
{com}. label val correctrecall map_check
{txt}
{com}. label var correctrecall "Correctly recalled info pack content"
{txt}
{com}. 
. gen aware=0
{txt}
{com}. replace aware=1 if Q21_en!=4
{txt}(921 real changes made)

{com}. label val aware map_check
{txt}
{com}. label var aware "Aware of having received info pack"
{txt}
{com}. 
. *Outcome variables
. *outcome 1
. 
. gen Vote=0
{txt}
{com}. replace Vote=1 if Q5_en ==3|Q5_en==2
{txt}(572 real changes made)

{com}. replace Vote=0 if Q5_en==1
{txt}(0 real changes made)

{com}. replace Vote=. if Q5_en==.
{txt}(315 real changes made, 315 to missing)

{com}. label var Vote "Voted in last election"
{txt}
{com}. label define YesNo  1 "Yes" 0 "No", replace
{txt}
{com}. label val Vote YesNo
{txt}
{com}. 
. generate vote_directly=1 if Q5_en==3
{txt}(692 missing values generated)

{com}. replace vote_directly=0 if Q5_en==1|Q5_en==2
{txt}(377 real changes made)

{com}. label var vote_directly "Voted directly (No Proxy)"
{txt}
{com}. label val vote_directly YesNo
{txt}
{com}. 
. *outcome 2
. *Name recall
. gen     nameNAHCM       =real(Q8b_name_NA_HCM)
{txt}(315 missing values generated)

{com}. label var nameNAHCM "Number of names recalled in National Assembly Election (voted in HCMC)"
{txt}
{com}. gen     namePCHCM       =real(Q8b_name_PC_HCM)
{txt}(315 missing values generated)

{com}. label var namePCHCM "Number of names recalled in People's Council Election (voted in HCMC)"
{txt}
{com}. gen     nameNAorigin    =real(Q8b_name_NA_origin)
{txt}(315 missing values generated)

{com}. label var nameNAorigin "Number of names recalled in National Assembly Election (voted in home province)"
{txt}
{com}. gen     namePCorigin    =real(Q8b_name_PC_origin)
{txt}(316 missing values generated)

{com}. label var namePCorigin "Number of names recalled in People's Council Election (voted in home province)"
{txt}
{com}. gen     nameNAothers    =real(Q8b_name_NA_others)
{txt}(315 missing values generated)

{com}. label var nameNAothers "Number of names recalled in National Assembly Election (voted in other province)"
{txt}
{com}. gen     namePCothers    =real(Q8b_name_PC_others)
{txt}(315 missing values generated)

{com}. label var namePCothers "Number of names recalled in People's Council Election (voted in other province)"
{txt}
{com}. 
. gen nameNA=max(nameNAHCM, nameNAorigin)
{txt}(315 missing values generated)

{com}. gen namePC=max(namePCHCM, namePCorigin)
{txt}(315 missing values generated)

{com}. label var nameNA "Number of names recalled in National Assembly Election"
{txt}
{com}. label var namePC "Number of names recalled in People's Council Election"
{txt}
{com}. 
. *Position recall
. gen     posNAHCM        =real(Q9b_pos_NA_HCM)
{txt}(315 missing values generated)

{com}. lab var posNAHCM "Number of positions respondent recalled voting for in VNA Election (voted HCMC)"
{txt}
{com}. gen     posPCHCM        =real(Q9b_pos_PC_HCM)
{txt}(315 missing values generated)

{com}. lab var posPCHCM "Number of positions respondent recalled voting for in PC Election (voted HCMC)"
{txt}
{com}. gen     posNAorigin     =real(Q9b_pos_NA_origin)
{txt}(315 missing values generated)

{com}. lab var posNAorigin "Number of positions respondent recalled voting for in VNA Election (voted home province)"
{txt}note: label truncated to 80 characters

{com}. gen     posPCorigin     =real(Q9b_pos_PC_origin)
{txt}(315 missing values generated)

{com}. lab var posPCorigin "Number of positions respondent recalled voting for in PC Election (voted home province)"
{txt}note: label truncated to 80 characters

{com}. gen     posNAothers     =real(Q9b_pos_NA_others)
{txt}(315 missing values generated)

{com}. lab var posNAothers "Number of positions respondent recalled voting for in VNA Election (voted other province)"
{txt}note: label truncated to 80 characters

{com}. gen     posPCothers     =real(Q9b_pos_PC_others)
{txt}(315 missing values generated)

{com}. lab var posPCothers "Number of positions respondent recalled voting for in VNA Election (voted other province)"
{txt}note: label truncated to 80 characters

{com}. 
. gen posNA=max(posNAHCM, posNAorigin)
{txt}(315 missing values generated)

{com}. gen posPC=max(posPCHCM, posPCorigin)
{txt}(315 missing values generated)

{com}. label var posNA "Number of positions recalled in NA"
{txt}
{com}. label var posPC "Number of positions recalled in PC"
{txt}
{com}. 
. *outcome 3
. gen CorrectVoteReason=0
{txt}
{com}. replace CorrectVoteReason=1 if Q11_7=="1"
{txt}(175 real changes made)

{com}. replace CorrectVoteReason=1 if Q11_8=="1"
{txt}(37 real changes made)

{com}. replace CorrectVoteReason=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var CorrectVoteReason "Correct voting reason according to PAP"
{txt}
{com}. 
. gen Correct3VoteReason=0
{txt}
{com}. replace Correct3VoteReason=1 if Q11_7=="1"
{txt}(175 real changes made)

{com}. replace Correct3VoteReason=1 if Q11_8=="1"
{txt}(37 real changes made)

{com}. replace Correct3VoteReason=1 if Q11_14=="1"
{txt}(16 real changes made)

{com}. replace Correct3VoteReason=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var Correct3VoteReason "Correct voting reasons with 3 options"
{txt}
{com}. 
. gen RationalVoteReason=0
{txt}
{com}. replace RationalVoteReason=1 if Q11_6=="1"
{txt}(85 real changes made)

{com}. replace RationalVoteReason=1 if Q11_7=="1"
{txt}(114 real changes made)

{com}. replace RationalVoteReason=1 if Q11_8=="1"
{txt}(30 real changes made)

{com}. replace RationalVoteReason=1 if Q11_9=="1"
{txt}(54 real changes made)

{com}. replace RationalVoteReason=1 if Q11_10=="1"
{txt}(2 real changes made)

{com}. replace RationalVoteReason=1 if Q11_11=="1"
{txt}(2 real changes made)

{com}. replace RationalVoteReason=1 if Q11_12=="1"
{txt}(0 real changes made)

{com}. replace RationalVoteReason=1 if Q11_13=="1"
{txt}(3 real changes made)

{com}. replace RationalVoteReason=1 if Q11_14=="1"
{txt}(3 real changes made)

{com}. replace RationalVoteReason=1 if Q11_15=="1"
{txt}(1 real change made)

{com}. replace RationalVoteReason=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var RationalVoteReason "Rational voting reasons"
{txt}
{com}. 
. *outcome 4
. *all data (non vote/vote indirectly w/o data is coded as 0)
. gen VNALegitimacy_all=0
{txt}
{com}. replace VNALegitimacy_all=0 if Q2_en==3
{txt}(0 real changes made)

{com}. replace VNALegitimacy_all=1 if Q2_en<=2
{txt}(410 real changes made)

{com}. replace VNALegitimacy_all=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var VNALegitimacy_all "Intention to watch VNA meeting - all data"
{txt}
{com}. label val VNALegitimacy_all YesNo
{txt}
{com}. 
. gen VNALegitimacy_high=0
{txt}
{com}. replace VNALegitimacy_high=0 if Q2_en==3
{txt}(0 real changes made)

{com}. replace VNALegitimacy_high=1 if Q2_en==2
{txt}(156 real changes made)

{com}. replace VNALegitimacy_high=2 if Q2_en==1
{txt}(254 real changes made)

{com}. replace VNALegitimacy_high=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var VNALegitimacy_high "Level of VNA Engagment"
{txt}
{com}. label define scale  2 "Watch TV" 1 "Social Media" 0 "No Watch", replace
{txt}
{com}. label val VNALegitimacy_high scale
{txt}
{com}. 
. 
. *outcome 5
. *all data (non vote/vote indirectly w/o data is coded as 0)
. gen VNAConfidence_all=real(Q4)
{txt}(461 missing values generated)

{com}. replace VNAConfidence_all=0 if VNAConfidence_all==.
{txt}(461 real changes made)

{com}. replace VNAConfidence_all=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label var VNAConfidence_all "Confidence score for NA - all data"
{txt}
{com}. 
. 
. 
. *Information exposure level
. destring Q16_*, replace
{txt}Q16_1: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_2: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_3: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_4: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_5: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_6: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_7: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_8: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q16_9: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}
{com}. egen Noofexposure = rowtotal(Q16_*)
{txt}
{com}. label var Noofexposure "Number of channels exposed to"
{txt}
{com}. replace Noofexposure=1 if Noofexposure==0
{txt}(317 real changes made)

{com}. 
. 
. 
. *actual voting location
. gen ActualVoteLocation=0
{txt}
{com}. replace ActualVoteLocation=1 if nameNAHCM~=0 | namePCHCM~=0
{txt}(412 real changes made)

{com}. replace ActualVoteLocation=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label define ActualVoteLocation 1 "HCM" 0 "Elsewhere"
{txt}
{com}. label val ActualVoteLocation ActualVoteLocation
{txt}
{com}. label var ActualVoteLocation "Actual Vote Location"
{txt}
{com}. 
. 
. *Creating variables for total number of recall
. egen Name=rowtotal(nameNA namePC)
{txt}
{com}. label var Name "No. of names recalled"
{txt}
{com}. egen Position=rowtotal (posNA posPC)
{txt}
{com}. label var Position "No. of positions recalled"
{txt}
{com}. 
. label var T1 "T1: Civic Education"
{txt}
{com}. label var T2 "T2: Candidate Biographies"
{txt}
{com}. label var T3 "T3: Legislative Dockets"
{txt}
{com}. 
. 
. gen research=0 
{txt}
{com}. replace research=1 if Q13_en==4
{txt}(317 real changes made)

{com}. replace research=1 if Q13_en==5
{txt}(62 real changes made)

{com}. replace research=. if P3=="No"
{txt}(314 real changes made, 314 to missing)

{com}. label val research polibg2
{txt}
{com}. label var research "Research behavior for Election"
{txt}
{com}. 
. 
. 
. generate vote_proxy=1-vote_directly if Vote==1
{txt}(450 missing values generated)

{com}. replace vote_proxy=0 if Vote==0
{txt}(135 real changes made)

{com}. lab var vote_proxy "Someone else voted on respondent's behalf"
{txt}
{com}. replace electiondateawareness_rc  = electiondateawareness_rc-1
{txt}(1,021 real changes made)

{com}. 
. 
. /*Destringing election outcome variables for number of names and number of positions recalled*/
. gen constant=1
{txt}
{com}. lab var constant "Constant"
{txt}
{com}. tab major_rc, gen(major)

   {txt}major_rc {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        288       28.21       28.21
{txt}          2 {c |}{res}        479       46.91       75.12
{txt}          3 {c |}{res}        254       24.88      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,021      100.00
{txt}
{com}. lab var major_rc "Major ID"
{txt}
{com}. lab define major_rc 1 "Economics/Business" 2 "Science/Technology" 3 "Law/Policy" 4 "Humanities"
{txt}
{com}. label values major_rc major_rc
{txt}
{com}. label var major1 "Economics/Business"
{txt}
{com}. label var major2 "Science/Technology"
{txt}
{com}. label var major3 "Law/Policy"
{txt}
{com}. recast byte polistat
{txt}
{com}. recast byte polibg
{txt}
{com}. 
. /*Recode Number of Candidate Names from Raw Data*/
. destring Q8b_name_NA_HCM Q8b_name_NA_origin Q8b_name_NA_others , replace
{txt}Q8b_name_NA_HCM: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q8b_name_NA_origin: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q8b_name_NA_others: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}
{com}. generate no_names=Q8b_name_NA_HCM
{txt}(315 missing values generated)

{com}. replace  no_names=Q8b_name_NA_origin if no_names==0|no_names==.
{txt}(31 real changes made)

{com}. replace  no_names=Q8b_name_NA_others if no_names==0|no_names==.
{txt}(10 real changes made)

{com}. replace no_names=1 if Q8_en==1 & no_names==0
{txt}(103 real changes made)

{com}. label var no_names "Number of names recalled in National Assembly Election"
{txt}
{com}. 
. 
. /*Recode Number of Candidate Positions from Raw Data*/
. destring Q9b_pos_NA_HCM Q9b_pos_NA_origin Q9b_pos_NA_others , replace
{txt}Q9b_pos_NA_HCM: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q9b_pos_NA_origin: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q9b_pos_NA_others: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}
{com}. generate no_positions=Q9b_pos_NA_HCM
{txt}(315 missing values generated)

{com}. replace  no_positions=Q9b_pos_NA_origin if no_positions==0|no_positions==.
{txt}(11 real changes made)

{com}. replace  no_positions=Q9b_pos_NA_others if no_positions==0|no_positions==.
{txt}(7 real changes made)

{com}. replace no_positions=1 if Q9_en==1 & no_positions==0
{txt}(62 real changes made)

{com}. label var no_positions "Number of positions recalled in National Assembly Election"
{txt}
{com}. 
. lab var Timestamp "Time and date of second interview"
{txt}
{com}. lab var age "Age at intercept interview (2021-birth year)"
{txt}
{com}. lab var male "Male student=1"
{txt}
{com}. lab var motorbikes "Number of motorbikes in family at intercept interview"
{txt}
{com}. lab var origin "Home province"
{txt}
{com}. 
. /*Destring Q11_7*/
. foreach x in Q11_1 Q11_2 Q11_3 Q11_4 Q11_5 Q11_6 Q11_7 Q11_8 Q11_9 Q11_10 Q11_11 Q11_12 Q11_13 Q11_14 Q11_15{c -(}
{txt}  2{com}.     destring `x', replace
{txt}  3{com}.         label val `x' YesNo
{txt}  4{com}. {c )-}
{txt}Q11_1: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_2: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_3: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_4: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_5: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_6: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_7: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_8: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_9: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_10: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_11: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_12: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_13: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_14: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}Q11_15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(315 missing values generated)
{res}{txt}
{com}. 
. 
. 
. order assignedID respid consent nextphaseconsent treatment_group T1 T2 T3 control strata receive correctrecall aware Vote vote_directly vote_proxy no_names no_positions Q11_7 VNALegitimacy_all VNAConfidence_all HCMC major_rc votingdivision2 age male motorbikes polibg polistat politicsinterest_rc electiondateawareness_rc Questionnaire_order P3 p2_physicaldelivery p2_Qrdelivery Q*
{txt}
{com}. 
. drop n
{txt}
{com}. 
. 
. save "9_election_working.dta", replace
{txt}{p 0 4 2}
file {bf}
9_election_working.dta{rm}
saved
{p_end}

{com}. codebookout "7_Codebook_ElectionWorking", replace
{res}{txt}file {bf:7_Codebook_ElectionWorking.xlsx} saved

{com}. 
. 
. 
{txt}end of do-file

{com}. /*************************************************************************************************/
. 
. /*************************************************************************************************/
. /*Main: Main Analysis in Paper
> Table 1: Line 7
> Table 2: Line 13
> Figure 2: Line 44
> Table 3: Line 55
> Figure 3: Line 75
> Figure 4: Line 96*/
. do 4_VNA_Main.do
{txt}
{com}. /*Prepared Using STATA 19 MP: September 19, 2025*/
. cap cd "C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"
{txt}
{com}. use "9_election_working.dta", clear
{txt}
{com}. set scheme plottig
{txt}
{com}. 
. *******************************************************************************************************
. /*Table 1: Descriptive Statistics of Outcome Variables for Control Group*/
. /*log using "Tables\Table2_Descriptives.smcl", replace*/
. estpost summarize Vote no_names no_positions Q11_7  vote_directly vote_proxy VNALegitimacy_all VNAConfidence_all   if treatment_group==0 & Vote<=1 

{txt}{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:e(count)}{space 1}{space 1}{ralign 9:e(sum_w)}{space 1}{space 1}{ralign 9:e(mean)}{space 1}{space 1}{ralign 9:e(Var)}{space 1}{space 1}{ralign 9:e(sd)}{space 1}{space 1}{ralign 9:e(min)}{space 1}{space 1}{ralign 9:e(max)}{space 1}{space 1}{ralign 9:e(sum)}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:Vote}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:  .839779}}}{space 1}{space 1}{ralign 9:{res:{sf: .1352977}}}{space 1}{space 1}{ralign 9:{res:{sf: .3678284}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:      152}}}{space 1}
{space 0}{space 0}{ralign 12:no_names}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf: .3922652}}}{space 1}{space 1}{ralign 9:{res:{sf: .5286065}}}{space 1}{space 1}{ralign 9:{res:{sf: .7270533}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        3}}}{space 1}{space 1}{ralign 9:{res:{sf:       71}}}{space 1}
{space 0}{space 0}{ralign 12:no_positions}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf: .1491713}}}{space 1}{space 1}{ralign 9:{res:{sf: .1720688}}}{space 1}{space 1}{ralign 9:{res:{sf: .4148117}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        3}}}{space 1}{space 1}{ralign 9:{res:{sf:       27}}}{space 1}
{space 0}{space 0}{ralign 12:Q11_7}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf: .2209945}}}{space 1}{space 1}{ralign 9:{res:{sf: .1731123}}}{space 1}{space 1}{ralign 9:{res:{sf: .4160677}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:       40}}}{space 1}
{space 0}{space 0}{ralign 12:vote_direc~y}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:  .480663}}}{space 1}{space 1}{ralign 9:{res:{sf: .2510129}}}{space 1}{space 1}{ralign 9:{res:{sf: .5010119}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:       87}}}{space 1}
{space 0}{space 0}{ralign 12:vote_proxy}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:  .359116}}}{space 1}{space 1}{ralign 9:{res:{sf: .2314303}}}{space 1}{space 1}{ralign 9:{res:{sf: .4810721}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:       65}}}{space 1}
{space 0}{space 0}{ralign 12:VNALegitim~l}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf: .5414365}}}{space 1}{space 1}{ralign 9:{res:{sf: .2496624}}}{space 1}{space 1}{ralign 9:{res:{sf: .4996623}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:       98}}}{space 1}
{space 0}{space 0}{ralign 12:VNAConfide~l}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:      181}}}{space 1}{space 1}{ralign 9:{res:{sf:  5.39779}}}{space 1}{space 1}{ralign 9:{res:{sf: 10.38533}}}{space 1}{space 1}{ralign 9:{res:{sf: 3.222628}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:       10}}}{space 1}{space 1}{ralign 9:{res:{sf:      977}}}{space 1}

{com}. esttab using "Tables\Table1", cells("count mean sd min max") replace
{res}{txt}(output written to {browse  `"Tables\Table1.txt"'})

{com}. /*log close*/
. *******************************************************************************************************
. ******************************************************************************************************************
. /*Table 2: OLS Hypothesis 1: Mobilization Efforts Did Not Have Significant Effect on Voting Behavior*/
. 
. reg Vote T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.67
                                                {txt}Prob > F          = {res}    0.0850
                                                {txt}R-squared         = {res}    0.0065
                                                {txt}Root MSE          =    {res} .39288

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0464829{col 26}{space 2} .0254925{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.1008189{col 67}{space 3} .0078531
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0754112{col 26}{space 2} .0384426{col 37}{space 1}   -1.96{col 46}{space 3}0.069{col 54}{space 4}-.1573496{col 67}{space 3} .0065272
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0016287{col 26}{space 2} .0247518{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4} -.054386{col 67}{space 3} .0511286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .839779{col 26}{space 2} .0304323{col 37}{space 1}   27.60{col 46}{space 3}0.000{col 54}{space 4} .7749142{col 67}{space 3} .9046439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) stats(coef pval) noaster drop(Vote)  replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:22.84}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0422}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0256}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3885}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0460717{col 33}{space 2} .0294738{col 44}{space 1}   -1.56{col 53}{space 3}0.139{col 61}{space 4}-.1088936{col 74}{space 3} .0167503
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0790366{col 33}{space 2} .0410684{col 44}{space 1}   -1.92{col 53}{space 3}0.073{col 61}{space 4}-.1665717{col 74}{space 3} .0084985
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0006271{col 33}{space 2} .0292228{col 44}{space 1}   -0.02{col 53}{space 3}0.983{col 61}{space 4} -.062914{col 74}{space 3} .0616599
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0331237{col 33}{space 2} .0512491{col 44}{space 1}    0.65{col 53}{space 3}0.528{col 61}{space 4}-.0761111{col 74}{space 3} .1423586
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0206563{col 33}{space 2} .0422137{col 44}{space 1}    0.49{col 53}{space 3}0.632{col 61}{space 4}  -.06932{col 74}{space 3} .1106326
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1136876{col 33}{space 2} .0287725{col 44}{space 1}    3.95{col 53}{space 3}0.001{col 61}{space 4} .0523605{col 74}{space 3} .1750148
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} -.041315{col 33}{space 2} .0369642{col 44}{space 1}   -1.12{col 53}{space 3}0.281{col 61}{space 4}-.1201022{col 74}{space 3} .0374722
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8468408{col 33}{space 2} .0921538{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .6504198{col 74}{space 3} 1.043262
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. 
. reg  no_names T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     3.21
                                                {txt}Prob > F          = {res}    0.0532
                                                {txt}R-squared         = {res}    0.0038
                                                {txt}Root MSE          =    {res} .67643

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    no_names{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0211426{col 26}{space 2} .0397532{col 37}{space 1}    0.53{col 46}{space 3}0.603{col 54}{space 4}-.0635894{col 67}{space 3} .1058746
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0819204{col 26}{space 2} .0608944{col 37}{space 1}   -1.35{col 46}{space 3}0.199{col 54}{space 4}-.2117137{col 67}{space 3}  .047873
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0181394{col 26}{space 2}  .068681{col 37}{space 1}    0.26{col 46}{space 3}0.795{col 54}{space 4}-.1282507{col 67}{space 3} .1645296
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3922652{col 26}{space 2} .0503879{col 37}{space 1}    7.78{col 46}{space 3}0.000{col 54}{space 4} .2848659{col 67}{space 3} .4996645
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Candidates (#)") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) stats(coef pval) drop(no_names) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. areg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:5.85}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0020}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0419}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0253}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.6677}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}           no_names{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .0175378{col 33}{space 2} .0391072{col 44}{space 1}    0.45{col 53}{space 3}0.660{col 61}{space 4}-.0658172{col 74}{space 3} .1008928
{txt}{space 17}T2 {c |}{col 21}{res}{space 2} -.088783{col 33}{space 2} .0619652{col 44}{space 1}   -1.43{col 53}{space 3}0.172{col 61}{space 4}-.2208587{col 74}{space 3} .0432927
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .0105393{col 33}{space 2} .0695139{col 44}{space 1}    0.15{col 53}{space 3}0.882{col 61}{space 4} -.137626{col 74}{space 3} .1587046
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}-.0798773{col 33}{space 2} .0861049{col 44}{space 1}   -0.93{col 53}{space 3}0.368{col 61}{space 4}-.2634054{col 74}{space 3} .1036509
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.0137295{col 33}{space 2} .0739394{col 44}{space 1}   -0.19{col 53}{space 3}0.855{col 61}{space 4}-.1713275{col 74}{space 3} .1438686
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1101999{col 33}{space 2} .0601602{col 44}{space 1}    1.83{col 53}{space 3}0.087{col 61}{space 4}-.0180285{col 74}{space 3} .2384283
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.1019851{col 33}{space 2} .0425102{col 44}{space 1}   -2.40{col 53}{space 3}0.030{col 61}{space 4}-.1925934{col 74}{space 3}-.0113767
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5510572{col 33}{space 2} .1025417{col 44}{space 1}    5.37{col 53}{space 3}0.000{col 61}{space 4} .3324947{col 74}{space 3} .7696197
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Candidates (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}.  
. reg no_positions T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     0.97
                                                {txt}Prob > F          = {res}    0.4322
                                                {txt}R-squared         = {res}    0.0010
                                                {txt}Root MSE          =    {res} .45594

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}no_positions{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0407729{col 26}{space 2} .0251151{col 37}{space 1}    1.62{col 46}{space 3}0.125{col 54}{space 4}-.0127588{col 67}{space 3} .0943045
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0232425{col 26}{space 2} .0413709{col 37}{space 1}    0.56{col 46}{space 3}0.583{col 54}{space 4}-.0649376{col 67}{space 3} .1114226
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0242391{col 26}{space 2}  .053093{col 37}{space 1}    0.46{col 46}{space 3}0.655{col 54}{space 4}-.0889259{col 67}{space 3} .1374042
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1491713{col 26}{space 2} .0309517{col 37}{space 1}    4.82{col 46}{space 3}0.000{col 54}{space 4} .0831994{col 67}{space 3} .2151432
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Positions (#)") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) stats(coef pval) drop(no_positions) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. areg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:1.21}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.3579}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0265}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0096}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4523}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}       no_positions{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .0389763{col 33}{space 2} .0260579{col 44}{space 1}    1.50{col 53}{space 3}0.155{col 61}{space 4}-.0165648{col 74}{space 3} .0945175
{txt}{space 17}T2 {c |}{col 21}{res}{space 2} .0145754{col 33}{space 2} .0427521{col 44}{space 1}    0.34{col 53}{space 3}0.738{col 61}{space 4}-.0765486{col 74}{space 3} .1056994
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .0196224{col 33}{space 2} .0529428{col 44}{space 1}    0.37{col 53}{space 3}0.716{col 61}{space 4}-.0932225{col 74}{space 3} .1324672
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}-.0828933{col 33}{space 2} .0514248{col 44}{space 1}   -1.61{col 53}{space 3}0.128{col 61}{space 4}-.1925026{col 74}{space 3} .0267161
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.0475065{col 33}{space 2} .0450623{col 44}{space 1}   -1.05{col 53}{space 3}0.308{col 61}{space 4}-.1435544{col 74}{space 3} .0485415
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .0326499{col 33}{space 2} .0382034{col 44}{space 1}    0.85{col 53}{space 3}0.406{col 61}{space 4}-.0487787{col 74}{space 3} .1140785
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0411899{col 33}{space 2} .0304357{col 44}{space 1}   -1.35{col 53}{space 3}0.196{col 61}{space 4} -.106062{col 74}{space 3} .0236822
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .2529327{col 33}{space 2} .0831068{col 44}{space 1}    3.04{col 53}{space 3}0.008{col 61}{space 4} .0757949{col 74}{space 3} .4300706
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Positions (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. 
. reg Q11_7 T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.93
                                                {txt}Prob > F          = {res}    0.0675
                                                {txt}R-squared         = {res}    0.0064
                                                {txt}Root MSE          =    {res} .43141

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       Q11_7{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0695083{col 26}{space 2} .0395243{col 37}{space 1}    1.76{col 46}{space 3}0.099{col 54}{space 4}-.0147358{col 67}{space 3} .1537524
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0140979{col 26}{space 2} .0280996{col 37}{space 1}   -0.50{col 46}{space 3}0.623{col 54}{space 4}-.0739907{col 67}{space 3} .0457949
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0506818{col 26}{space 2}  .027205{col 37}{space 1}    1.86{col 46}{space 3}0.082{col 54}{space 4}-.0073042{col 67}{space 3} .1086679
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2209945{col 26}{space 2} .0247685{col 37}{space 1}    8.92{col 46}{space 3}0.000{col 54}{space 4} .1682017{col 67}{space 3} .2737872
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. areg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:3.15}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0296}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0342}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0175}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4283}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}              Q11_7{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .0696816{col 33}{space 2} .0431117{col 44}{space 1}    1.62{col 53}{space 3}0.127{col 61}{space 4}-.0222088{col 74}{space 3} .1615719
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0173571{col 33}{space 2} .0296503{col 44}{space 1}   -0.59{col 53}{space 3}0.567{col 61}{space 4}-.0805552{col 74}{space 3} .0458411
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .0469588{col 33}{space 2} .0244979{col 44}{space 1}    1.92{col 53}{space 3}0.075{col 61}{space 4}-.0052573{col 74}{space 3} .0991748
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}-.0280228{col 33}{space 2} .0459305{col 44}{space 1}   -0.61{col 53}{space 3}0.551{col 61}{space 4}-.1259214{col 74}{space 3} .0698758
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.0512879{col 33}{space 2} .0501034{col 44}{space 1}   -1.02{col 53}{space 3}0.322{col 61}{space 4}-.1580808{col 74}{space 3}  .055505
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .0424049{col 33}{space 2} .0322434{col 44}{space 1}    1.32{col 53}{space 3}0.208{col 61}{space 4}-.0263203{col 74}{space 3} .1111301
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} .0024202{col 33}{space 2} .0391254{col 44}{space 1}    0.06{col 53}{space 3}0.951{col 61}{space 4}-.0809736{col 74}{space 3}  .085814
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .2357692{col 33}{space 2}  .091527{col 44}{space 1}    2.58{col 53}{space 3}0.021{col 61}{space 4}  .040684{col 74}{space 3} .4308544
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster excel
{txt}{browse `"Tables\Table2.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\Table2.txt", label"':seeout}

{com}. 
. /********Multiple Comparisons*****************************/
. /*log using "Tables\Table2_wyoung_p.smcl", replace*/
. /*Model without Control Variables 1, 3, 5, 7*/
. wyoung Vote no_names no_positions Q11_7, cmd(reg OUTCOMEVAR T1 T2 T3, cluster(votingdivision2))  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}12{txt} hypothesis tests

familyp: {res}T1
    reg Vote T1 T2 T3, cluster(votingdivision2)
    reg no_names T1 T2 T3, cluster(votingdivision2)
    reg no_positions T1 T2 T3, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg Vote T1 T2 T3, cluster(votingdivision2)
    reg no_names T1 T2 T3, cluster(votingdivision2)
    reg no_positions T1 T2 T3, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg Vote T1 T2 T3, cluster(votingdivision2)
    reg no_names T1 T2 T3, cluster(votingdivision2)
    reg no_positions T1 T2 T3, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3, cluster(votingdivision2)

     {txt}{c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  1. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 1 {txt}{c |} {res}        reg Vote T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}        Vote {txt}{c |} {res}     T1 {txt}{c |} {res}-.04648292 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res} .0254925     {txt}{c |}     {res}.08823202     {txt}{c |}     {res}   .544     {txt}{c |}     {res}.90384444     {txt}{c |}     {res}.61059921     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  2. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 2 {txt}{c |} {res}    reg no_names T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}    no_names {txt}{c |} {res}     T1 {txt}{c |} {res} .02114263 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.03975323     {txt}{c |}     {res}.60262073     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  3. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 3 {txt}{c |} {res}reg no_positions T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}no_positions {txt}{c |} {res}     T1 {txt}{c |} {res} .04077286 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.02511515     {txt}{c |}     {res}.12531972     {txt}{c |}     {res}   .581     {txt}{c |}     {res}        1     {txt}{c |}     {res}.65739421     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  4. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 4 {txt}{c |} {res}       reg Q11_7 T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}       Q11_7 {txt}{c |} {res}     T1 {txt}{c |} {res} .06950832 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.03952433     {txt}{c |}     {res}.09902006     {txt}{c |}     {res}   .552     {txt}{c |}     {res}.90384444     {txt}{c |}     {res}.61059921     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  5. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 5 {txt}{c |} {res}        reg Vote T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}        Vote {txt}{c |} {res}     T2 {txt}{c |} {res}-.07541119 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.03844258     {txt}{c |}     {res}.06863454     {txt}{c |}     {res}   .531     {txt}{c |}     {res}.82361445     {txt}{c |}     {res}.57396866     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  6. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 6 {txt}{c |} {res}    reg no_names T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}    no_names {txt}{c |} {res}     T2 {txt}{c |} {res}-.08192037 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.06089442     {txt}{c |}     {res}.19851934     {txt}{c |}     {res}   .672     {txt}{c |}     {res}        1     {txt}{c |}     {res}.78755264     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  7. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 7 {txt}{c |} {res}reg no_positions T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}no_positions {txt}{c |} {res}     T2 {txt}{c |} {res} .02324252 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.04137094     {txt}{c |}     {res}.58254484     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  8. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 8 {txt}{c |} {res}       reg Q11_7 T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}       Q11_7 {txt}{c |} {res}     T2 {txt}{c |} {res}-.01409792 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.02809956     {txt}{c |}     {res}.62315278     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
  9. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res} 9 {txt}{c |} {res}        reg Vote T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}        Vote {txt}{c |} {res}     T3 {txt}{c |} {res}-.00162872 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.02475183     {txt}{c |}     {res}.94840458     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
 10. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res}10 {txt}{c |} {res}    reg no_names T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}    no_names {txt}{c |} {res}     T3 {txt}{c |} {res} .01813943 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.06868103     {txt}{c |}     {res}.79528841     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
 11. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res}11 {txt}{c |} {res}reg no_positions T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}no_positions {txt}{c |} {res}     T3 {txt}{c |} {res} .02423913 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.05309299     {txt}{c |}     {res}.65454195     {txt}{c |}     {res}   .989     {txt}{c |}     {res}        1     {txt}{c |}     {res}.99470752     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}

     {c TLC}{hline 4}{c TT}{hline 53}{c TT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TRC}
 12. {c |}  k {c |}                                               model {c |}      outcome {c |} familyp {c |}       coef {c |}
     {c |} {res}12 {txt}{c |} {res}       reg Q11_7 T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}       Q11_7 {txt}{c |} {res}     T3 {txt}{c |} {res} .05068183 {txt}{c |}
     {c LT}{hline 4}{c BT}{hline 13}{c TT}{hline 19}{c TT}{hline 17}{c TT}{hline 1}{c BT}{hline 14}{c BT}{hline 2}{c TT}{hline 6}{c BT}{hline 12}{c RT}
     {c |}       stderr     {c |}             p     {c |}     pwyoung     {c |}         pbonf     {c |}        psidak     {c |}
     {c |}    {res}.02720498     {txt}{c |}     {res}.08216768     {txt}{c |}     {res}   .544     {txt}{c |}     {res}.90384444     {txt}{c |}     {res}.61059921     {txt}{c |}
     {c BLC}{hline 18}{c BT}{hline 19}{c BT}{hline 17}{c BT}{hline 19}{c BT}{hline 19}{c BRC}
{res}{txt}
{com}. /*Model without Control Variables 2, 4, 6, 8*/
. wyoung Vote no_names no_positions Q11_7, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}12{txt} hypothesis tests

familyp: {res}T1
    reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                               {res} 1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T1 {txt}{c |} {res}-.04607169 {txt}{c |} {res}.02947382 {txt}{c |} {res}.13886778 {txt}{c |} {res}   .651 {txt}{c |} {res}        1  {txt}{c |} {res}.74246667  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                               {res} 2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 .. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T1 {txt}{c |} {res} .01753782 {txt}{c |} {res} .0391072 {txt}{c |} {res}.66023485 {txt}{c |} {res}   .995 {txt}{c |} {res}        1  {txt}{c |} {res}.99547213  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                               {res} 3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T1 {txt}{c |} {res} .03897632 {txt}{c |} {res}.02605792 {txt}{c |} {res}.15545827 {txt}{c |} {res}   .656 {txt}{c |} {res}        1  {txt}{c |} {res}.74246667  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                               {res} 4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 str.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T1 {txt}{c |} {res} .06968156 {txt}{c |} {res}.04311168 {txt}{c |} {res}.12686109 {txt}{c |} {res}   .651 {txt}{c |} {res}        1  {txt}{c |} {res}.74246667  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                               {res} 5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T2 {txt}{c |} {res}-.07903661 {txt}{c |} {res}.04106836 {txt}{c |} {res}.07347224 {txt}{c |} {res}   .546 {txt}{c |} {res}.88166685  {txt}{c |} {res}.59977774  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                               {res} 6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 .. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T2 {txt}{c |} {res}  -.088783 {txt}{c |} {res} .0619652 {txt}{c |} {res}.17243021 {txt}{c |} {res}   .656 {txt}{c |} {res}        1  {txt}{c |} {res}.74246667  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  7. {c |}                                                k                                                {c |}
     {c |}                                               {res} 7                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T2 {txt}{c |} {res} .01457537 {txt}{c |} {res}.04275212 {txt}{c |} {res} .7378865 {txt}{c |} {res}   .995 {txt}{c |} {res}        1  {txt}{c |} {res}.99547213  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  8. {c |}                                                k                                                {c |}
     {c |}                                               {res} 8                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 str.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T2 {txt}{c |} {res}-.01735705 {txt}{c |} {res}.02965031 {txt}{c |} {res}.56698744 {txt}{c |} {res}   .987 {txt}{c |} {res}        1  {txt}{c |} {res}.99340822  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  9. {c |}                                                k                                                {c |}
     {c |}                                               {res} 9                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T3 {txt}{c |} {res}-.00062706 {txt}{c |} {res}.02922281 {txt}{c |} {res}.98316322 {txt}{c |} {res}   .995 {txt}{c |} {res}        1  {txt}{c |} {res}.99547213  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 10. {c |}                                                k                                                {c |}
     {c |}                                               {res}10                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 .. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T3 {txt}{c |} {res} .01053931 {txt}{c |} {res}.06951386 {txt}{c |} {res}.88151136 {txt}{c |} {res}   .995 {txt}{c |} {res}        1  {txt}{c |} {res}.99547213  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 11. {c |}                                                k                                                {c |}
     {c |}                                               {res}11                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 stra.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T3 {txt}{c |} {res} .01962235 {txt}{c |} {res}.05294277 {txt}{c |} {res}.71609248 {txt}{c |} {res}   .995 {txt}{c |} {res}        1  {txt}{c |} {res}.99547213  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 12. {c |}                                                k                                                {c |}
     {c |}                                               {res}12                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC Questionnaire_order strata2 strata3 strata4 strata5 str.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T3 {txt}{c |} {res} .04695877 {txt}{c |} {res}.02449791 {txt}{c |} {res}  .074508 {txt}{c |} {res}   .546 {txt}{c |} {res}.88166685  {txt}{c |} {res}.59977774  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}
{res}{txt}
{com}. /*log close*/
.  
. ***********************************************************************************************************************************************************************************************************************************
. /*Figure 2 "Civic Educations Reduces Proxy Voting, Candidate Information Reduces Direct Voting"*/
. preserve
{txt}
{com}. replace vote_directly=vote_directly*100
{txt}(330 real changes made)

{com}. replace vote_proxy=vote_proxy*100
{txt}(242 real changes made)

{com}. 
. graph bar (mean) vote_directly (mean) vote_proxy, over(treatment_group) stack blabel(bar, size(small) color(black) position(inside) format(%9.2f)) legend(rows(2) ring(0) size(small) position(11) label(1 "Vote Directly") label(2 "Vote by Proxy")) ylab(0(10)100, labsize(small)) ytitle("Share of Respondents (%)", size(medium)) bar(1, fcolor(pink) lcolor(pink))
{res}{txt}
{com}. graph save "Figures\Figure2.gph", replace
{res}{txt}file {bf:Figures\Figure2.gph} saved

{com}. graph export "Figures\Figure2.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\Figure2.pdf{rm}
saved as
PDF
format
{p_end}

{com}. restore
{txt}
{com}. 
. ***********************************************************************************************************************************************************************************************************************************
. /*Table 3: Hypothesis 2: Civic Education Increases Interest in VNA*/ 
. 
. reg  VNALegitimacy_all T1 T2 T3, robust

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 703)         =  {res}     1.40
                                                {txt}Prob > F          = {res}    0.2427
                                                {txt}R-squared         = {res}    0.0058
                                                {txt}Root MSE          =    {res} .49353

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNALegitim~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}  .095435{col 26}{space 2} .0517579{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4}-.0061834{col 67}{space 3} .1970535
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0102877{col 26}{space 2} .0530003{col 37}{space 1}    0.19{col 46}{space 3}0.846{col 54}{space 4}-.0937701{col 67}{space 3} .1143454
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0481589{col 26}{space 2} .0527843{col 37}{space 1}    0.91{col 46}{space 3}0.362{col 54}{space 4}-.0554748{col 67}{space 3} .1517926
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5414365{col 26}{space 2} .0371421{col 37}{space 1}   14.58{col 46}{space 3}0.000{col 54}{space 4} .4685138{col 67}{space 3} .6143592
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Will Watch VNA=1") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster replace
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\Table3.txt", label"':seeout}

{com}. areg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, robust absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:693})}{col 70} = {res}{ralign 6:16.89}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.1582}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.1436}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4572}

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}  VNALegitimacy_all{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .0998505{col 33}{space 2} .0481952{col 44}{space 1}    2.07{col 53}{space 3}0.039{col 61}{space 4} .0052245{col 74}{space 3} .1944766
{txt}{space 17}T2 {c |}{col 21}{res}{space 2} .0011104{col 33}{space 2} .0482203{col 44}{space 1}    0.02{col 53}{space 3}0.982{col 61}{space 4} -.093565{col 74}{space 3} .0957859
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .0440601{col 33}{space 2} .0502272{col 44}{space 1}    0.88{col 53}{space 3}0.381{col 61}{space 4}-.0545556{col 74}{space 3} .1426758
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}-.0170973{col 33}{space 2} .0475114{col 44}{space 1}   -0.36{col 53}{space 3}0.719{col 61}{space 4}-.1103809{col 74}{space 3} .0761862
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.0553587{col 33}{space 2} .0429879{col 44}{space 1}   -1.29{col 53}{space 3}0.198{col 61}{space 4}-.1397608{col 74}{space 3} .0290434
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .0106646{col 33}{space 2}    .0363{col 44}{space 1}    0.29{col 53}{space 3}0.769{col 61}{space 4}-.0606066{col 74}{space 3} .0819358
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} .3701195{col 33}{space 2}  .036437{col 44}{space 1}   10.16{col 53}{space 3}0.000{col 61}{space 4} .2985793{col 74}{space 3} .4416597
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0357587{col 33}{space 2} .0769353{col 44}{space 1}   -0.46{col 53}{space 3}0.642{col 61}{space 4} -.186813{col 74}{space 3} .1152955
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Will Watch VNA=1") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster 
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\Table3.txt", label"':seeout}

{com}.  
. reg VNAConfidence_all T1 T2 T3, robust

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 703)         =  {res}     0.63
                                                {txt}Prob > F          = {res}    0.5982
                                                {txt}R-squared         = {res}    0.0026
                                                {txt}Root MSE          =    {res} 3.2313

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNAConfide~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .3675731{col 26}{space 2} .3321283{col 37}{space 1}    1.11{col 46}{space 3}0.269{col 54}{space 4}-.2845091{col 67}{space 3} 1.019655
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0102559{col 26}{space 2} .3571292{col 37}{space 1}    0.03{col 46}{space 3}0.977{col 54}{space 4}-.6909116{col 67}{space 3} .7114235
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .2958516{col 26}{space 2} .3370374{col 37}{space 1}    0.88{col 46}{space 3}0.380{col 54}{space 4}-.3658689{col 67}{space 3}  .957572
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  5.39779{col 26}{space 2}  .239552{col 37}{space 1}   22.53{col 46}{space 3}0.000{col 54}{space 4} 4.927467{col 67}{space 3} 5.868113
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\Table3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Confidence in VNA (1-10)") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\Table3.txt", label"':seeout}

{com}. areg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, robust absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:693})}{col 70} = {res}{ralign 6:36.19}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.3420}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.3306}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:2.6399}

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}  VNAConfidence_all{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .3951382{col 33}{space 2} .2763219{col 44}{space 1}    1.43{col 53}{space 3}0.153{col 61}{space 4}-.1473903{col 74}{space 3} .9376667
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0390726{col 33}{space 2} .2856454{col 44}{space 1}   -0.14{col 53}{space 3}0.891{col 61}{space 4}-.5999068{col 74}{space 3} .5217616
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .2830633{col 33}{space 2} .2822068{col 44}{space 1}    1.00{col 53}{space 3}0.316{col 61}{space 4}-.2710196{col 74}{space 3} .8371462
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}-.2046469{col 33}{space 2} .2792666{col 44}{space 1}   -0.73{col 53}{space 3}0.464{col 61}{space 4}-.7529571{col 74}{space 3} .3436633
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.2431702{col 33}{space 2}  .253319{col 44}{space 1}   -0.96{col 53}{space 3}0.337{col 61}{space 4}-.7405351{col 74}{space 3} .2541946
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2}-.0614198{col 33}{space 2} .2063212{col 44}{space 1}   -0.30{col 53}{space 3}0.766{col 61}{space 4}-.4665094{col 74}{space 3} .3436697
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} 3.841256{col 33}{space 2} .2465691{col 44}{space 1}   15.58{col 53}{space 3}0.000{col 61}{space 4} 3.357144{col 74}{space 3} 4.325368
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.6943648{col 33}{space 2} .5447859{col 44}{space 1}   -1.27{col 53}{space 3}0.203{col 61}{space 4}-1.763994{col 74}{space 3} .3752641
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\Table3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Confidence in VNA (1-10)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster   excel
{res}check {stata eret list} for the existence of e(N_clust)
{txt}{browse `"Tables\Table3.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\Table3.txt", label"':seeout}

{com}. 
. /********Multiple Comparisons*****************************/
. /*log using "Tables\Table3_wyoung_p.smcl", replace*/
. wyoung VNALegitimacy_all VNAConfidence_all, cmd(reg OUTCOMEVAR T1 T2 T3, cluster(votingdivision2))  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}6{txt} hypothesis tests

familyp: {res}T1
    reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2)

     {txt}{c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  1. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}1 {txt}{c |} {res}reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNALegitimacy_all {txt}{c |} {res}     T1 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.09543504   {txt}{c |}   {res}.03726723   {txt}{c |}   {res}.02172624   {txt}{c |}   {res}   .132   {txt}{c |}   {res}.13035743   {txt}{c |}   {res}.12347879   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}

     {c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  2. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}2 {txt}{c |} {res}reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNAConfidence_all {txt}{c |} {res}     T1 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.36757307   {txt}{c |}   {res}.36473215   {txt}{c |}   {res}.32953711   {txt}{c |}   {res}   .749   {txt}{c |}   {res}        1   {txt}{c |}   {res}.86452046   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}

     {c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  3. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}3 {txt}{c |} {res}reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNALegitimacy_all {txt}{c |} {res}     T2 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.01028767   {txt}{c |}   {res}.04488568   {txt}{c |}   {res}.82181136   {txt}{c |}   {res}   .954   {txt}{c |}   {res}        1   {txt}{c |}   {res}.96824881   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}

     {c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  4. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}4 {txt}{c |} {res}reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNAConfidence_all {txt}{c |} {res}     T2 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.01025592   {txt}{c |}   {res}.35084201   {txt}{c |}   {res}.97706471   {txt}{c |}   {res}   .985   {txt}{c |}   {res}        1   {txt}{c |}   {res}.97706471   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}

     {c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  5. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}5 {txt}{c |} {res}reg VNALegitimacy_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNALegitimacy_all {txt}{c |} {res}     T3 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.04815891   {txt}{c |}   {res}.07152678   {txt}{c |}   {res}.51099848   {txt}{c |}   {res}   .823   {txt}{c |}   {res}        1   {txt}{c |}   {res}.89682565   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}

     {c TLC}{hline 3}{c TT}{hline 58}{c TT}{hline 19}{c TT}{hline 9}{c TRC}
  6. {c |} k {c |}                                                    model {c |}           outcome {c |} familyp {c |}
     {c |} {res}6 {txt}{c |} {res}reg VNAConfidence_all T1 T2 T3, cluster(votingdivision2) {txt}{c |} {res}VNAConfidence_all {txt}{c |} {res}     T3 {txt}{c |}
     {c LT}{hline 3}{c BT}{hline 10}{c TT}{hline 15}{c TT}{hline 15}{c TT}{hline 13}{c TT}{hline 1}{c BT}{hline 13}{c TT}{hline 5}{c BT}{hline 9}{c RT}
     {c |}       coef   {c |}      stderr   {c |}           p   {c |}   pwyoung   {c |}       pbonf   {c |}      psidak   {c |}
     {c |}  {res}.29585156   {txt}{c |}   {res}.36739772   {txt}{c |}   {res}.43324816   {txt}{c |}   {res}   .793   {txt}{c |}   {res}        1   {txt}{c |}   {res}.89682565   {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 15}{c BT}{hline 15}{c BT}{hline 13}{c BT}{hline 15}{c BT}{hline 15}{c BRC}
{res}{txt}
{com}. 
. wyoung VNALegitimacy_all VNAConfidence_all, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC Questionnaire_order" "major1 major2 HCMC Questionnaire_order")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}6{txt} hypothesis tests

familyp: {res}T1
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                                {res}1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T1  {txt}{c |} {res}.10028802  {txt}{c |} {res}.03000129  {txt}{c |}  {res}.00445068  {txt}{c |}  {res}   .058  {txt}{c |}  {res}.02670406  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.02640869                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                                {res}2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T1  {txt}{c |} {res}.40689832  {txt}{c |} {res}  .185336  {txt}{c |}  {res}.04427719  {txt}{c |}  {res}   .217  {txt}{c |}  {res}.22138595  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.20263025                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                                {res}3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T2  {txt}{c |} {res}.00947779  {txt}{c |} {res}.03068099  {txt}{c |}  {res}  .761636  {txt}{c |}  {res}   .931  {txt}{c |}  {res}        1  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res} .9431826                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                                {res}4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T2  {txt}{c |} {res}.00234289  {txt}{c |} {res}.16388696  {txt}{c |}  {res}.98878243  {txt}{c |}  {res}   .985  {txt}{c |}  {res}        1  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.98878243                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                                {res}5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T3  {txt}{c |} {res}.04938528  {txt}{c |} {res}.06612531  {txt}{c |}  {res}.46670377  {txt}{c |}  {res}   .801  {txt}{c |}  {res}        1  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.84832796                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                                {res}6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |}                                                                                           model {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T3  {txt}{c |} {res}.29654256  {txt}{c |} {res}.30772935  {txt}{c |}  {res}.35050206  {txt}{c |}  {res}   .746  {txt}{c |}  {res}        1  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.82204463                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}
{res}{txt}
{com}. /*log close*/
. 
. *******************************************************************************************************************************************************************************************************************************
. /*Figure 3: Regime Outsiders Disincentivized to Vote*/
. wildbootstrap reg Vote i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2)  rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text}.{text} done{text} ({result:32})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}                    Vote{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0913933{col 38}{space 1}  -2.23{col 46}{space 3}0.070{col 54}{space 3} -.183953{col 66}{space 3} .0102961
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.0696232{col 38}{space 1}  -1.88{col 46}{space 3}0.096{col 54}{space 3}-.1313369{col 66}{space 3} .0262719
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .2060162{col 38}{space 1}   2.37{col 46}{space 3}0.086{col 54}{space 3}-.0886309{col 66}{space 3} .3804867
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.1080282{col 38}{space 1}  -2.22{col 46}{space 3}0.096{col 54}{space 3}-.2146711{col 66}{space 3} .0114188
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2} .1453597{col 38}{space 1}   2.46{col 46}{space 3}0.054{col 54}{space 3}-.0228384{col 66}{space 3} .2654356
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0120509{col 38}{space 1}  -0.39{col 46}{space 3}0.692{col 54}{space 3}-.0931243{col 66}{space 3} .0574891
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} .0778097{col 38}{space 1}   1.04{col 46}{space 3}0.288{col 54}{space 3}-.0725295{col 66}{space 3} .2665211
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0428766{col 38}{space 1}   0.81{col 46}{space 3}0.452{col 54}{space 3} -.077533{col 66}{space 3} .1731025
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0287071{col 38}{space 1}   0.69{col 46}{space 3}0.510{col 54}{space 3} -.086208{col 66}{space 3}   .11615
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .1105056{col 38}{space 1}   3.98{col 46}{space 3}0.002{col 54}{space 3} .0490272{col 66}{space 3} .1826741
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0448576{col 38}{space 1}  -1.28{col 46}{space 3}0.194{col 54}{space 3}-.1315359{col 66}{space 3} .0276435
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0913933{col 26}{space 2} .0410302{col 37}{space 1}   -2.23{col 46}{space 3}0.042{col 54}{space 4} -.178847{col 67}{space 3}-.0039395
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}  .114623{col 26}{space 2} .0617971{col 37}{space 1}    1.85{col 46}{space 3}0.083{col 54}{space 4}-.0170944{col 67}{space 3} .2463404
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. wildbootstrap reg Vote i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2)  rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text}.{text} done{text} ({result:32})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}                    Vote{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0913933{col 38}{space 1}  -2.23{col 46}{space 3}0.070{col 54}{space 3} -.183953{col 66}{space 3} .0102961
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.0696232{col 38}{space 1}  -1.88{col 46}{space 3}0.096{col 54}{space 3}-.1313369{col 66}{space 3} .0262719
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .2060162{col 38}{space 1}   2.37{col 46}{space 3}0.086{col 54}{space 3}-.0886309{col 66}{space 3} .3804867
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.1080282{col 38}{space 1}  -2.22{col 46}{space 3}0.096{col 54}{space 3}-.2146711{col 66}{space 3} .0114188
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2} .1453597{col 38}{space 1}   2.46{col 46}{space 3}0.054{col 54}{space 3}-.0228384{col 66}{space 3} .2654356
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0120509{col 38}{space 1}  -0.39{col 46}{space 3}0.692{col 54}{space 3}-.0931243{col 66}{space 3} .0574891
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} .0778097{col 38}{space 1}   1.04{col 46}{space 3}0.288{col 54}{space 3}-.0725295{col 66}{space 3} .2665211
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0428766{col 38}{space 1}   0.81{col 46}{space 3}0.452{col 54}{space 3} -.077533{col 66}{space 3} .1731025
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0287071{col 38}{space 1}   0.69{col 46}{space 3}0.510{col 54}{space 3} -.086208{col 66}{space 3}   .11615
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .1105056{col 38}{space 1}   3.98{col 46}{space 3}0.002{col 54}{space 3} .0490272{col 66}{space 3} .1826741
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0448576{col 38}{space 1}  -1.28{col 46}{space 3}0.194{col 54}{space 3}-.1315359{col 66}{space 3} .0276435
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.1080282{col 26}{space 2} .0485867{col 37}{space 1}   -2.22{col 46}{space 3}0.042{col 54}{space 4}-.2115884{col 67}{space 3} -.004468
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} .0373315{col 26}{space 2} .0447898{col 37}{space 1}    0.83{col 46}{space 3}0.418{col 54}{space 4}-.0581356{col 67}{space 3} .1327986
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Biography", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. wildbootstrap reg Vote i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2)  rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text}.{text} done{text} ({result:32})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}                    Vote{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0913933{col 38}{space 1}  -2.23{col 46}{space 3}0.070{col 54}{space 3} -.183953{col 66}{space 3} .0102961
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.0696232{col 38}{space 1}  -1.88{col 46}{space 3}0.096{col 54}{space 3}-.1313369{col 66}{space 3} .0262719
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .2060162{col 38}{space 1}   2.37{col 46}{space 3}0.086{col 54}{space 3}-.0886309{col 66}{space 3} .3804867
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.1080282{col 38}{space 1}  -2.22{col 46}{space 3}0.096{col 54}{space 3}-.2146711{col 66}{space 3} .0114188
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2} .1453597{col 38}{space 1}   2.46{col 46}{space 3}0.054{col 54}{space 3}-.0228384{col 66}{space 3} .2654356
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0120509{col 38}{space 1}  -0.39{col 46}{space 3}0.692{col 54}{space 3}-.0931243{col 66}{space 3} .0574891
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} .0778097{col 38}{space 1}   1.04{col 46}{space 3}0.288{col 54}{space 3}-.0725295{col 66}{space 3} .2665211
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0428766{col 38}{space 1}   0.81{col 46}{space 3}0.452{col 54}{space 3} -.077533{col 66}{space 3} .1731025
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0287071{col 38}{space 1}   0.69{col 46}{space 3}0.510{col 54}{space 3} -.086208{col 66}{space 3}   .11615
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .1105056{col 38}{space 1}   3.98{col 46}{space 3}0.002{col 54}{space 3} .0490272{col 66}{space 3} .1826741
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0448576{col 38}{space 1}  -1.28{col 46}{space 3}0.194{col 54}{space 3}-.1315359{col 66}{space 3} .0276435
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0120509{col 26}{space 2} .0310438{col 37}{space 1}   -0.39{col 46}{space 3}0.703{col 54}{space 4}-.0782193{col 67}{space 3} .0541174
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} .0657587{col 26}{space 2} .0667487{col 37}{space 1}    0.99{col 46}{space 3}0.340{col 54}{space 4}-.0765128{col 67}{space 3} .2080302
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Legislative Docket", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. /*Figure 3: Marginal Effects Plot*/
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Regime Insider?", size(medium) position(6)) subtitle("Conditional Average Treatment Effects", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\Figure3.gph", replace
{res}{txt}file {bf:Figures\Figure3.gph} saved

{com}. graph export "Figures\Figure3.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\Figure3.pdf{rm}
saved as
PDF
format
{p_end}

{com}. *******************************************************************************************************************************************************************************************************************************
. /*Figure 4: No Difference between Outsiders and Insiders Regarding Interest in the VNA*/
. wildbootstrap reg VNALegitimacy_all i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.19}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNALegitimacy_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .0952034{col 38}{space 1}   2.34{col 46}{space 3}0.022{col 54}{space 3} .0132666{col 66}{space 3} .1885668
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}  .082914{col 38}{space 1}   1.52{col 46}{space 3}0.114{col 54}{space 3}-.0265105{col 66}{space 3} .2097165
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .0191504{col 38}{space 1}   0.17{col 46}{space 3}0.832{col 54}{space 3}-.3253484{col 66}{space 3} .2230586
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .0464222{col 38}{space 1}   1.20{col 46}{space 3}0.242{col 54}{space 3}-.0345312{col 66}{space 3} .1291995
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.1486404{col 38}{space 1}  -2.02{col 46}{space 3}0.064{col 54}{space 3}-.3464305{col 66}{space 3} .0084363
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0894427{col 38}{space 1}   1.43{col 46}{space 3}0.198{col 54}{space 3}-.0792247{col 66}{space 3} .2357434
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} -.155133{col 38}{space 1}  -1.60{col 46}{space 3}0.108{col 54}{space 3}-.3988769{col 66}{space 3} .0357969
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.0039375{col 38}{space 1}  -0.08{col 46}{space 3}0.944{col 54}{space 3}-.1073862{col 66}{space 3} .1015278
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0504968{col 38}{space 1}  -1.00{col 46}{space 3}0.356{col 54}{space 3}-.1628445{col 66}{space 3} .0748695
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}   .00854{col 38}{space 1}   0.30{col 46}{space 3}0.824{col 54}{space 3}-.0536478{col 66}{space 3} .0736611
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .3684478{col 38}{space 1}   7.89{col 46}{space 3}0.000{col 54}{space 3}  .235971{col 66}{space 3} .4669383
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .0952034{col 26}{space 2} .0407448{col 37}{space 1}    2.34{col 46}{space 3}0.034{col 54}{space 4} .0083579{col 67}{space 3} .1820488
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} .1143537{col 26}{space 2} .0891772{col 37}{space 1}    1.28{col 46}{space 3}0.219{col 54}{space 4} -.075723{col 67}{space 3} .3044305
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. wildbootstrap reg VNALegitimacy_all i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.19}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNALegitimacy_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .0952034{col 38}{space 1}   2.34{col 46}{space 3}0.022{col 54}{space 3} .0132666{col 66}{space 3} .1885668
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}  .082914{col 38}{space 1}   1.52{col 46}{space 3}0.114{col 54}{space 3}-.0265105{col 66}{space 3} .2097165
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .0191504{col 38}{space 1}   0.17{col 46}{space 3}0.832{col 54}{space 3}-.3253484{col 66}{space 3} .2230586
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .0464222{col 38}{space 1}   1.20{col 46}{space 3}0.242{col 54}{space 3}-.0345312{col 66}{space 3} .1291995
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.1486404{col 38}{space 1}  -2.02{col 46}{space 3}0.064{col 54}{space 3}-.3464305{col 66}{space 3} .0084363
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0894427{col 38}{space 1}   1.43{col 46}{space 3}0.198{col 54}{space 3}-.0792247{col 66}{space 3} .2357434
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} -.155133{col 38}{space 1}  -1.60{col 46}{space 3}0.108{col 54}{space 3}-.3988769{col 66}{space 3} .0357969
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.0039375{col 38}{space 1}  -0.08{col 46}{space 3}0.944{col 54}{space 3}-.1073862{col 66}{space 3} .1015278
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0504968{col 38}{space 1}  -1.00{col 46}{space 3}0.356{col 54}{space 3}-.1628445{col 66}{space 3} .0748695
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}   .00854{col 38}{space 1}   0.30{col 46}{space 3}0.824{col 54}{space 3}-.0536478{col 66}{space 3} .0736611
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .3684478{col 38}{space 1}   7.89{col 46}{space 3}0.000{col 54}{space 3}  .235971{col 66}{space 3} .4669383
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .0464222{col 26}{space 2} .0386111{col 37}{space 1}    1.20{col 46}{space 3}0.248{col 54}{space 4}-.0358755{col 67}{space 3} .1287198
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.1022182{col 26}{space 2} .0572127{col 37}{space 1}   -1.79{col 46}{space 3}0.094{col 54}{space 4}-.2241643{col 67}{space 3} .0197278
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Biography", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. wildbootstrap reg VNALegitimacy_all i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question , cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.19}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNALegitimacy_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .0952034{col 38}{space 1}   2.34{col 46}{space 3}0.022{col 54}{space 3} .0132666{col 66}{space 3} .1885668
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}  .082914{col 38}{space 1}   1.52{col 46}{space 3}0.114{col 54}{space 3}-.0265105{col 66}{space 3} .2097165
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .0191504{col 38}{space 1}   0.17{col 46}{space 3}0.832{col 54}{space 3}-.3253484{col 66}{space 3} .2230586
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .0464222{col 38}{space 1}   1.20{col 46}{space 3}0.242{col 54}{space 3}-.0345312{col 66}{space 3} .1291995
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.1486404{col 38}{space 1}  -2.02{col 46}{space 3}0.064{col 54}{space 3}-.3464305{col 66}{space 3} .0084363
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0894427{col 38}{space 1}   1.43{col 46}{space 3}0.198{col 54}{space 3}-.0792247{col 66}{space 3} .2357434
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} -.155133{col 38}{space 1}  -1.60{col 46}{space 3}0.108{col 54}{space 3}-.3988769{col 66}{space 3} .0357969
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.0039375{col 38}{space 1}  -0.08{col 46}{space 3}0.944{col 54}{space 3}-.1073862{col 66}{space 3} .1015278
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0504968{col 38}{space 1}  -1.00{col 46}{space 3}0.356{col 54}{space 3}-.1628445{col 66}{space 3} .0748695
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}   .00854{col 38}{space 1}   0.30{col 46}{space 3}0.824{col 54}{space 3}-.0536478{col 66}{space 3} .0736611
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .3684478{col 38}{space 1}   7.89{col 46}{space 3}0.000{col 54}{space 3}  .235971{col 66}{space 3} .4669383
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(polibg ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:polibg}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3         {txt}{c |}
{space 6}polibg {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .0894427{col 26}{space 2} .0624926{col 37}{space 1}    1.43{col 46}{space 3}0.173{col 54}{space 4}-.0437571{col 67}{space 3} .2226425
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0656903{col 26}{space 2} .1133653{col 37}{space 1}   -0.58{col 46}{space 3}0.571{col 54}{space 4}-.3073228{col 67}{space 3} .1759423
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Legislative Docket", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:polibg}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. /*Figure 4**/
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Regime Insider?", size(medium) position(6)) subtitle("Subgroup Effects of Treatments", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\Figure4.gph", replace
{res}{txt}file {bf:Figures\Figure4.gph} saved

{com}. graph export "Figures\Figure4.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\Figure4.pdf{rm}
saved as
PDF
format
{p_end}

{com}. *******************************************************************************************************************************************************************************************************************************
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
{txt}end of do-file

{com}. /*************************************************************************************************/
. 
. /*************************************************************************************************/
. /*Appendices: Appendices C, D, E, F G, H, I 
> Appendix A21:Line 7
> Appendix A22: Line 14
> Appendix C: Line 17
> Appendix D: Line 52
> Appendix E: Line 56
> Appendix F1: Line 66
> Appendix F2: Line 70
> Appendix G (Hard coded): Line 110
> Appendix H: Line 121*/
. do 5_VNA_AppendixACDEFGHI.do
{txt}
{com}. /*Prepared Using STATA 19 MP: September 19, 2025*/
. cap cd "C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"
{txt}
{com}. use "9_election_working.dta", clear
{txt}
{com}. set scheme plottig
{txt}
{com}. 
. 
. ********************************************************************************************/
. /*No Difference in Success Rate of Treatment Package Delivery in Phase 2*/
. replace p2_physicaldelivery="Fail" if p2_physicaldelivery=="Failed"
{txt}(102 real changes made)

{com}. replace p2_physicaldelivery="Fail" if p2_physicaldelivery=="N/A"
{txt}(274 real changes made)

{com}. tabout p2_physicaldelivery treatment_group if control==0 using "Tables\AppendixA21_DeliverSuccess", append cells(freq col) f(0c 2p) stats(chi2) 
{res}
{txt}Table output written to: Tables\AppendixA21_DeliverSuccess

{res}        Treatment Group                                                 
Received physical treatment in Phase 2  T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %
Fail    42      16.47%  42      16.54%  38      14.73%  122     15.91%
Success 213     83.53%  212     83.46%  220     85.27%  645     84.09%
Total   255     100.00% 254     100.00% 258     100.00% 767     100.00%

Pearson chi2(2) = 0.4033 Pr = 0.817                                                             

        Treatment Group                                                 
Received physical treatment in Phase 2  T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %
Fail    42      16.47%  42      16.54%  38      14.73%  122     15.91%
Success 213     83.53%  212     83.46%  220     85.27%  645     84.09%
Total   255     100.00% 254     100.00% 258     100.00% 767     100.00%

Pearson chi2(2) = 0.4033 Pr = 0.817                                                             

        Treatment Group                                                 
Received physical treatment in Phase 2  T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %
Fail    42      16.47%  42      16.54%  38      14.73%  122     15.91%
Success 213     83.53%  212     83.46%  220     85.27%  645     84.09%
Total   255     100.00% 254     100.00% 258     100.00% 767     100.00%

Pearson chi2(2) = 0.4033 Pr = 0.817                                                             
{txt}
{com}. 
. /*No Difference Awareness of VNA Election in Phase 1 Recruitment*/
. tabout electiondateawareness_rc  treatment_group using "Tables\AppendixA22_ElectionAwareness", replace cells(freq col) f(0c 2p)
{res}
{txt}Table output written to: Tables\AppendixA22_ElectionAwareness

{res}        Treatment Group                                                                 
Know what is the exact Election date?   Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
        213     83.86%  222     87.06%  215     84.65%  228     88.37%  878     85.99%
No      41      16.14%  33      12.94%  39      15.35%  30      11.63%  143     14.01%
Total   254     100.00% 255     100.00% 254     100.00% 258     100.00% 1,021   100.00%
{txt}
{com}. 
. /*******************************************************************************************************/
. /*Appendix C: Balance in Pre-Treatment Confounders*/
. 
. /*Panel A: Before Packet Disbursal*/
. reg age control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res} 59087.04
{txt}       Model {c |} {res} 412493.053         4  103123.263   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1774.94699     1,017  1.74527728   {txt}R-squared       ={res}    0.9957
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.9957
{txt}       Total {c |} {res}     414268     1,021  405.747307   {txt}Root MSE        =   {res} 1.3211

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         age{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2}  20.0315{col 26}{space 2} .0828925{col 37}{space 1}  241.66{col 46}{space 3}0.000{col 54}{space 4} 19.86884{col 67}{space 3} 20.19416
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 20.08235{col 26}{space 2} .0827298{col 37}{space 1}  242.75{col 46}{space 3}0.000{col 54}{space 4} 19.92001{col 67}{space 3} 20.24469
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}  20.1063{col 26}{space 2} .0828925{col 37}{space 1}  242.56{col 46}{space 3}0.000{col 54}{space 4} 19.94364{col 67}{space 3} 20.26896
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} 20.17829{col 26}{space 2} .0822474{col 37}{space 1}  245.34{col 46}{space 3}0.000{col 54}{space 4}  20.0169{col 67}{space 3} 20.33969
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster stat(coef ci) drop(age) replace
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg male control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}   242.57
{txt}       Model {c |} {res} 242.169157         4  60.5422892   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 253.830843     1,017   .24958785   {txt}R-squared       ={res}    0.4882
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.4862
{txt}       Total {c |} {res}        496     1,021  .485798237   {txt}Root MSE        =   {res} .49959

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        male{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .4409449{col 26}{space 2} .0313469{col 37}{space 1}   14.07{col 46}{space 3}0.000{col 54}{space 4} .3794328{col 67}{space 3} .5024569
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .5098039{col 26}{space 2} .0312854{col 37}{space 1}   16.30{col 46}{space 3}0.000{col 54}{space 4} .4484126{col 67}{space 3} .5711952
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .4645669{col 26}{space 2} .0313469{col 37}{space 1}   14.82{col 46}{space 3}0.000{col 54}{space 4} .4030549{col 67}{space 3}  .526079
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .5271318{col 26}{space 2}  .031103{col 37}{space 1}   16.95{col 46}{space 3}0.000{col 54}{space 4} .4660984{col 67}{space 3} .5881651
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(male)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg motorbikes control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}  1898.27
{txt}       Model {c |} {res} 5520.58377         4  1380.14594   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 739.416231     1,017  .727056274   {txt}R-squared       ={res}    0.8819
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8814
{txt}       Total {c |} {res}       6260     1,021  6.13124388   {txt}Root MSE        =   {res} .85268

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  motorbikes{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} 2.334646{col 26}{space 2} .0535016{col 37}{space 1}   43.64{col 46}{space 3}0.000{col 54}{space 4} 2.229659{col 67}{space 3} 2.439632
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 2.290196{col 26}{space 2} .0533966{col 37}{space 1}   42.89{col 46}{space 3}0.000{col 54}{space 4} 2.185416{col 67}{space 3} 2.394976
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} 2.358268{col 26}{space 2} .0535016{col 37}{space 1}   44.08{col 46}{space 3}0.000{col 54}{space 4} 2.253281{col 67}{space 3} 2.463254
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} 2.317829{col 26}{space 2} .0530853{col 37}{space 1}   43.66{col 46}{space 3}0.000{col 54}{space 4}  2.21366{col 67}{space 3} 2.421999
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(motorbikes)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg polibg control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}    80.27
{txt}       Model {c |} {res} 58.7905943         4  14.6976486   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 186.209406     1,017  .183096761   {txt}R-squared       ={res}    0.2400
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2370
{txt}       Total {c |} {res}        245     1,021  .239960823   {txt}Root MSE        =   {res}  .4279

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      polibg{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .2401575{col 26}{space 2} .0268487{col 37}{space 1}    8.94{col 46}{space 3}0.000{col 54}{space 4} .1874723{col 67}{space 3} .2928427
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .2392157{col 26}{space 2}  .026796{col 37}{space 1}    8.93{col 46}{space 3}0.000{col 54}{space 4} .1866339{col 67}{space 3} .2917975
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .2401575{col 26}{space 2} .0268487{col 37}{space 1}    8.94{col 46}{space 3}0.000{col 54}{space 4} .1874723{col 67}{space 3} .2928427
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .2403101{col 26}{space 2} .0266398{col 37}{space 1}    9.02{col 46}{space 3}0.000{col 54}{space 4} .1880349{col 67}{space 3} .2925853
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(polibg)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg polistat control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}  1704.47
{txt}       Model {c |} {res} 772.734069         4  193.183517   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 115.265931     1,017  .113339165   {txt}R-squared       ={res}    0.8702
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8697
{txt}       Total {c |} {res}        888     1,021  .869735553   {txt}Root MSE        =   {res} .33666

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    polistat{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .8543307{col 26}{space 2} .0211239{col 37}{space 1}   40.44{col 46}{space 3}0.000{col 54}{space 4} .8128794{col 67}{space 3}  .895782
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .8509804{col 26}{space 2} .0210824{col 37}{space 1}   40.36{col 46}{space 3}0.000{col 54}{space 4} .8096104{col 67}{space 3} .8923504
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .9015748{col 26}{space 2} .0211239{col 37}{space 1}   42.68{col 46}{space 3}0.000{col 54}{space 4} .8601235{col 67}{space 3} .9430261
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}  .872093{col 26}{space 2} .0209595{col 37}{space 1}   41.61{col 46}{space 3}0.000{col 54}{space 4} .8309643{col 67}{space 3} .9132218
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(polistat)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg politicsinterest_rc control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}  3088.56
{txt}       Model {c |} {res} 6131.27458         4  1532.81864   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 504.725421     1,017  .496288516   {txt}R-squared       ={res}    0.9239
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.9236
{txt}       Total {c |} {res}       6636     1,021  6.49951028   {txt}Root MSE        =   {res} .70448

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}politicsin~c{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} 2.452756{col 26}{space 2} .0442028{col 37}{space 1}   55.49{col 46}{space 3}0.000{col 54}{space 4} 2.366017{col 67}{space 3} 2.539495
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 2.454902{col 26}{space 2} .0441161{col 37}{space 1}   55.65{col 46}{space 3}0.000{col 54}{space 4} 2.368333{col 67}{space 3} 2.541471
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} 2.452756{col 26}{space 2} .0442028{col 37}{space 1}   55.49{col 46}{space 3}0.000{col 54}{space 4} 2.366017{col 67}{space 3} 2.539495
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}  2.44186{col 26}{space 2} .0438589{col 37}{space 1}   55.68{col 46}{space 3}0.000{col 54}{space 4} 2.355796{col 67}{space 3} 2.527925
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(politicsinterest_rc)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. reg electiondateawareness_rc control T1 T2 T3 , nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,021
{txt}{hline 13}{c +}{hline 34}   F(4, 1017)      = {res}    42.22
{txt}       Model {c |} {res} 20.3652595         4  5.09131489   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  122.63474     1,017  .120584799   {txt}R-squared       ={res}    0.1424
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1390
{txt}       Total {c |} {res}        143     1,021  .140058766   {txt}Root MSE        =   {res} .34725

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}electionda~c{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .1614173{col 26}{space 2} .0217886{col 37}{space 1}    7.41{col 46}{space 3}0.000{col 54}{space 4} .1186616{col 67}{space 3} .2041731
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .1294118{col 26}{space 2} .0217458{col 37}{space 1}    5.95{col 46}{space 3}0.000{col 54}{space 4} .0867399{col 67}{space 3} .1720836
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .1535433{col 26}{space 2} .0217886{col 37}{space 1}    7.05{col 46}{space 3}0.000{col 54}{space 4} .1107875{col 67}{space 3} .1962991
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .1162791{col 26}{space 2}  .021619{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4}  .073856{col 67}{space 3} .1587021
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelA", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(electiondateawareness_rc) excel
{res}check {stata eret list} for the existence of e(N_clust)
{txt}{browse `"Tables\AppendixC_PanelA.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelA.txt""':seeout}

{com}. 
. 
. /*Panel B: At Endline Survey*/
. reg age control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res} 44260.24
{txt}       Model {c |} {res} 282809.013         4  70702.2532   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  1122.9871       703  1.59742119   {txt}R-squared       ={res}    0.9960
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.9960
{txt}       Total {c |} {res}     283932       707  401.601132   {txt}Root MSE        =   {res} 1.2639

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         age{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} 19.98895{col 26}{space 2} .0939443{col 37}{space 1}  212.77{col 46}{space 3}0.000{col 54}{space 4} 19.80451{col 67}{space 3}  20.1734
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 19.87709{col 26}{space 2} .0944677{col 37}{space 1}  210.41{col 46}{space 3}0.000{col 54}{space 4} 19.69162{col 67}{space 3} 20.06257
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} 19.95402{col 26}{space 2} .0958154{col 37}{space 1}  208.25{col 46}{space 3}0.000{col 54}{space 4}  19.7659{col 67}{space 3} 20.14214
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} 20.18497{col 26}{space 2} .0960919{col 37}{space 1}  210.06{col 46}{space 3}0.000{col 54}{space 4} 19.99631{col 67}{space 3} 20.37363
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(age) replace
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg male control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}   142.21
{txt}       Model {c |} {res} 140.888573         4  35.2221432   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 174.111427       703  .247669171   {txt}R-squared       ={res}    0.4473
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.4441
{txt}       Total {c |} {res}        315       707  .445544554   {txt}Root MSE        =   {res} .49766

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        male{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .4088398{col 26}{space 2} .0369911{col 37}{space 1}   11.05{col 46}{space 3}0.000{col 54}{space 4} .3362136{col 67}{space 3} .4814659
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .4636872{col 26}{space 2} .0371971{col 37}{space 1}   12.47{col 46}{space 3}0.000{col 54}{space 4} .3906564{col 67}{space 3} .5367179
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .4310345{col 26}{space 2} .0377278{col 37}{space 1}   11.42{col 46}{space 3}0.000{col 54}{space 4} .3569618{col 67}{space 3} .5051071
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .4797688{col 26}{space 2} .0378367{col 37}{space 1}   12.68{col 46}{space 3}0.000{col 54}{space 4} .4054824{col 67}{space 3} .5540552
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(male)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg motorbikes control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}  1327.27
{txt}       Model {c |} {res} 3869.60653         4  967.401634   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 512.393465       703  .728866949   {txt}R-squared       ={res}    0.8831
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8824
{txt}       Total {c |} {res}       4382       707   6.1980198   {txt}Root MSE        =   {res} .85374

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  motorbikes{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} 2.331492{col 26}{space 2} .0634578{col 37}{space 1}   36.74{col 46}{space 3}0.000{col 54}{space 4} 2.206902{col 67}{space 3} 2.456081
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 2.363128{col 26}{space 2} .0638113{col 37}{space 1}   37.03{col 46}{space 3}0.000{col 54}{space 4} 2.237845{col 67}{space 3} 2.488412
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} 2.333333{col 26}{space 2} .0647216{col 37}{space 1}   36.05{col 46}{space 3}0.000{col 54}{space 4} 2.206262{col 67}{space 3} 2.460404
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}  2.32948{col 26}{space 2} .0649084{col 37}{space 1}   35.89{col 46}{space 3}0.000{col 54}{space 4} 2.202042{col 67}{space 3} 2.456917
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(motorbikes)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg polibg control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}    61.92
{txt}       Model {c |} {res} 47.4181028         4  11.8545257   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 134.581897       703  .191439399   {txt}R-squared       ={res}    0.2605
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2563
{txt}       Total {c |} {res}        182       707  .257425743   {txt}Root MSE        =   {res} .43754

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      polibg{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .2265193{col 26}{space 2} .0325219{col 37}{space 1}    6.97{col 46}{space 3}0.000{col 54}{space 4} .1626676{col 67}{space 3} .2903711
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .2346369{col 26}{space 2} .0327031{col 37}{space 1}    7.17{col 46}{space 3}0.000{col 54}{space 4} .1704294{col 67}{space 3} .2988443
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .2758621{col 26}{space 2} .0331697{col 37}{space 1}    8.32{col 46}{space 3}0.000{col 54}{space 4} .2107386{col 67}{space 3} .3409855
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .2947977{col 26}{space 2} .0332654{col 37}{space 1}    8.86{col 46}{space 3}0.000{col 54}{space 4} .2294863{col 67}{space 3} .3601091
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(polibg)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg polistat control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}  1446.58
{txt}       Model {c |} {res} 561.750836         4  140.437709   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 68.2491644       703  .097082737   {txt}R-squared       ={res}    0.8917
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8911
{txt}       Total {c |} {res}        630       707  .891089109   {txt}Root MSE        =   {res} .31158

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    polistat{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} .8563536{col 26}{space 2} .0231596{col 37}{space 1}   36.98{col 46}{space 3}0.000{col 54}{space 4} .8108833{col 67}{space 3} .9018239
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .8938547{col 26}{space 2} .0232887{col 37}{space 1}   38.38{col 46}{space 3}0.000{col 54}{space 4} .8481311{col 67}{space 3} .9395784
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .9195402{col 26}{space 2} .0236209{col 37}{space 1}   38.93{col 46}{space 3}0.000{col 54}{space 4} .8731643{col 67}{space 3} .9659162
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .8959538{col 26}{space 2} .0236891{col 37}{space 1}   37.82{col 46}{space 3}0.000{col 54}{space 4}  .849444{col 67}{space 3} .9424635
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(polistat)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg politicsinterest_rc control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}  2326.99
{txt}       Model {c |} {res} 4312.30593         4  1078.07648   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 325.694072       703  .463291709   {txt}R-squared       ={res}    0.9298
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.9294
{txt}       Total {c |} {res}       4638       707  6.56011315   {txt}Root MSE        =   {res} .68066

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}politicsin~c{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2} 2.502762{col 26}{space 2} .0505927{col 37}{space 1}   49.47{col 46}{space 3}0.000{col 54}{space 4} 2.403432{col 67}{space 3} 2.602093
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} 2.441341{col 26}{space 2} .0508746{col 37}{space 1}   47.99{col 46}{space 3}0.000{col 54}{space 4} 2.341456{col 67}{space 3} 2.541225
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} 2.454023{col 26}{space 2} .0516003{col 37}{space 1}   47.56{col 46}{space 3}0.000{col 54}{space 4} 2.352714{col 67}{space 3} 2.555332
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} 2.479769{col 26}{space 2} .0517493{col 37}{space 1}   47.92{col 46}{space 3}0.000{col 54}{space 4} 2.378167{col 67}{space 3}  2.58137
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster  stat(coef ci) drop(politicsinterest_rc)
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. reg electiondateawareness_rc control T1 T2 T3 if P3=="Yes", nocons

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       707
{txt}{hline 13}{c +}{hline 34}   F(4, 703)       = {res}    29.65
{txt}       Model {c |} {res} 14.5800262         4  3.64500654   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 86.4199738       703  .122930262   {txt}R-squared       ={res}    0.1444
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1395
{txt}       Total {c |} {res}        101       707  .142857143   {txt}Root MSE        =   {res} .35061

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}electionda~c{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}control {c |}{col 14}{res}{space 2}  .160221{col 26}{space 2} .0260609{col 37}{space 1}    6.15{col 46}{space 3}0.000{col 54}{space 4} .1090544{col 67}{space 3} .2113876
{txt}{space 10}T1 {c |}{col 14}{res}{space 2} .1396648{col 26}{space 2} .0262061{col 37}{space 1}    5.33{col 46}{space 3}0.000{col 54}{space 4} .0882132{col 67}{space 3} .1911165
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .1206897{col 26}{space 2}   .02658{col 37}{space 1}    4.54{col 46}{space 3}0.000{col 54}{space 4}  .068504{col 67}{space 3} .1728753
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}  .150289{col 26}{space 2} .0266567{col 37}{space 1}    5.64{col 46}{space 3}0.000{col 54}{space 4} .0979527{col 67}{space 3} .2026253
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixC_PanelB", bdec(3) tdec(3)  e(rmse N_clust) noaster stat(coef ci) drop(electiondateawareness_rc) excel 
{res}check {stata eret list} for the existence of e(N_clust)
{txt}{browse `"Tables\AppendixC_PanelB.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixC_PanelB.txt""':seeout}

{com}. /*******************************************************************************************************/
. /*******************************************************************************************************/
. /*Appendix D: Response Rate for Endline Survey in Phase 3*/
. tabout P3 treatment_group using"Tables\AppendixD", append cells(freq col) f(0c 2p) stats(chi2)
{res}
{txt}Table output written to: Tables\AppendixD

{res}        Treatment Group                                                                 
Participated in Phase 3?        Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
No      73      28.74%  76      29.80%  80      31.50%  85      32.95%  314     30.75%
Yes     181     71.26%  179     70.20%  174     68.50%  173     67.05%  707     69.25%
Total   254     100.00% 255     100.00% 254     100.00% 258     100.00% 1,021   100.00%

Pearson chi2(3) = 1.2394 Pr = 0.744                                                                             

        Treatment Group                                                                 
Participated in Phase 3?        Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
No      73      28.74%  76      29.80%  80      31.50%  85      32.95%  314     30.75%
Yes     181     71.26%  179     70.20%  174     68.50%  173     67.05%  707     69.25%
Total   254     100.00% 255     100.00% 254     100.00% 258     100.00% 1,021   100.00%

Pearson chi2(3) = 1.2394 Pr = 0.744                                                                             

        Treatment Group                                                                 
Participated in Phase 3?        Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
No      73      28.74%  76      29.80%  80      31.50%  85      32.95%  314     30.75%
Yes     181     71.26%  179     70.20%  174     68.50%  173     67.05%  707     69.25%
Total   254     100.00% 255     100.00% 254     100.00% 258     100.00% 1,021   100.00%

Pearson chi2(3) = 1.2394 Pr = 0.744                                                                             
{txt}
{com}. /*******************************************************************************************************/
. /*******************************************************************************************************/
. /*Appendix E: Attrition is Not Correlated with Treatment*/
. generate attrit=1 if P3=="No"
{txt}(708 missing values generated)

{com}. replace attrit=0 if P3=="Yes"
{txt}(707 real changes made)

{com}. 
. reg attrit T1 T2 T3, robust

{txt}Linear regression                               Number of obs     = {res}     1,021
                                                {txt}F(3, 1017)        =  {res}     0.41
                                                {txt}Prob > F          = {res}    0.7451
                                                {txt}R-squared         = {res}    0.0012
                                                {txt}Root MSE          =    {res}  .4621

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      attrit{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0106376{col 26}{space 2} .0404122{col 37}{space 1}    0.26{col 46}{space 3}0.792{col 54}{space 4}-.0686631{col 67}{space 3} .0899384
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0275591{col 26}{space 2} .0407709{col 37}{space 1}    0.68{col 46}{space 3}0.499{col 54}{space 4}-.0524457{col 67}{space 3} .1075638
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0420558{col 26}{space 2} .0408547{col 37}{space 1}    1.03{col 46}{space 3}0.304{col 54}{space 4}-.0381134{col 67}{space 3} .1222249
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2874016{col 26}{space 2} .0284513{col 37}{space 1}   10.10{col 46}{space 3}0.000{col 54}{space 4} .2315716{col 67}{space 3} .3432316
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixE", bdec(3) tdec(3)  e(rmse N_clust) noaster  replace
{res}check {stata eret list} for the existence of e(N_clust)
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixE.txt""':seeout}

{com}. reg attrit T1 T2 T3 age male motorbikes polibg polistat politicsinterest_rc electiondateawareness_rc, robust

{txt}Linear regression                               Number of obs     = {res}     1,021
                                                {txt}F(10, 1010)       =  {res}     4.02
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0394
                                                {txt}Root MSE          =    {res} .45475

{txt}{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}                  attrit{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}T1 {c |}{col 26}{res}{space 2} .0008361{col 38}{space 2} .0398257{col 49}{space 1}    0.02{col 58}{space 3}0.983{col 66}{space 4}-.0773145{col 79}{space 3} .0789867
{txt}{space 22}T2 {c |}{col 26}{res}{space 2} .0282398{col 38}{space 2} .0405544{col 49}{space 1}    0.70{col 58}{space 3}0.486{col 66}{space 4}-.0513408{col 79}{space 3} .1078204
{txt}{space 22}T3 {c |}{col 26}{res}{space 2} .0293998{col 38}{space 2} .0406529{col 49}{space 1}    0.72{col 58}{space 3}0.470{col 66}{space 4} -.050374{col 79}{space 3} .1091736
{txt}{space 21}age {c |}{col 26}{res}{space 2} .0362924{col 38}{space 2} .0112766{col 49}{space 1}    3.22{col 58}{space 3}0.001{col 66}{space 4} .0141641{col 79}{space 3} .0584207
{txt}{space 20}male {c |}{col 26}{res}{space 2} .0985271{col 38}{space 2} .0288014{col 49}{space 1}    3.42{col 58}{space 3}0.001{col 66}{space 4} .0420096{col 79}{space 3} .1550446
{txt}{space 14}motorbikes {c |}{col 26}{res}{space 2}-.0127608{col 38}{space 2} .0170663{col 49}{space 1}   -0.75{col 58}{space 3}0.455{col 66}{space 4}-.0462503{col 79}{space 3} .0207287
{txt}{space 18}polibg {c |}{col 26}{res}{space 2}-.0526059{col 38}{space 2} .0326068{col 49}{space 1}   -1.61{col 58}{space 3}0.107{col 66}{space 4}-.1165906{col 79}{space 3} .0113789
{txt}{space 16}polistat {c |}{col 26}{res}{space 2}-.1159863{col 38}{space 2} .0458696{col 49}{space 1}   -2.53{col 58}{space 3}0.012{col 66}{space 4}-.2059969{col 79}{space 3}-.0259757
{txt}{space 5}politicsinterest_rc {c |}{col 26}{res}{space 2}-.0327564{col 38}{space 2} .0207078{col 49}{space 1}   -1.58{col 58}{space 3}0.114{col 66}{space 4}-.0733918{col 79}{space 3} .0078789
{txt}electiondateawareness_rc {c |}{col 26}{res}{space 2}-.0073837{col 38}{space 2} .0419863{col 49}{space 1}   -0.18{col 58}{space 3}0.860{col 66}{space 4} -.089774{col 79}{space 3} .0750067
{txt}{space 19}_cons {c |}{col 26}{res}{space 2}-.2599821{col 38}{space 2} .2340282{col 49}{space 1}   -1.11{col 58}{space 3}0.267{col 66}{space 4}-.7192193{col 79}{space 3} .1992551
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixE", bdec(3) tdec(3)  e(rmse N_clust) noaster  excel
{res}check {stata eret list} for the existence of e(N_clust)
{txt}{browse `"Tables\AppendixE.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixE.txt""':seeout}

{com}. /*******************************************************************************************************/
. /*******************************************************************************************************/
. /*Appendix F1: Differences between Respondents Receiving Follow-Up VNA Questions*/
. tabout Questionnaire_order treatment_group using "Tables\AppendixF1", append cells (freq col) f(0c 2p) stats(chi2)
{res}
{txt}Table output written to: Tables\AppendixF1

{res}        Treatment Group                                                                 
Questionnaire order     Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
1       65      35.91%  66      36.87%  63      36.42%  62      35.84%  256     36.26%
2       116     64.09%  113     63.13%  110     63.58%  111     64.16%  450     63.74%
Total   181     100.00% 179     100.00% 173     100.00% 173     100.00% 706     100.00%

Pearson chi2(3) = 0.0536 Pr = 0.997                                                                             

        Treatment Group                                                                 
Questionnaire order     Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
1       65      35.91%  66      36.87%  63      36.42%  62      35.84%  256     36.26%
2       116     64.09%  113     63.13%  110     63.58%  111     64.16%  450     63.74%
Total   181     100.00% 179     100.00% 173     100.00% 173     100.00% 706     100.00%

Pearson chi2(3) = 0.0536 Pr = 0.997                                                                             

        Treatment Group                                                                 
Questionnaire order     Control Control T1: Civic Education     T1: Civic Education     T2: Candidate Biography T2: Candidate Biography T3: Legislative Docket  T3: Legislative Docket  Total   Total
        No.     %       No.     %       No.     %       No.     %       No.     %
1       65      35.91%  66      36.87%  63      36.42%  62      35.84%  256     36.26%
2       116     64.09%  113     63.13%  110     63.58%  111     64.16%  450     63.74%
Total   181     100.00% 179     100.00% 173     100.00% 173     100.00% 706     100.00%

Pearson chi2(3) = 0.0536 Pr = 0.997                                                                             
{txt}
{com}. /*******************************************************************************************************/
. /*******************************************************************************************************/
. /*APPENDIX F2: Civic Education Results are Robust to Limiting Analysis to Only Those with Corrected Survey.*/
. areg Vote T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:6.06}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0022}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0526}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0098}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3692}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0095958{col 26}{space 2} .0645176{col 37}{space 1}   -0.15{col 46}{space 3}0.884{col 54}{space 4}-.1471118{col 67}{space 3} .1279202
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0505383{col 26}{space 2} .0741972{col 37}{space 1}   -0.68{col 46}{space 3}0.506{col 54}{space 4} -.208686{col 67}{space 3} .1076093
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0045046{col 26}{space 2} .0675855{col 37}{space 1}    0.07{col 46}{space 3}0.948{col 54}{space 4}-.1395506{col 67}{space 3} .1485598
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .0155593{col 26}{space 2} .0887512{col 37}{space 1}    0.18{col 46}{space 3}0.863{col 54}{space 4}-.1736093{col 67}{space 3} .2047279
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-.0366941{col 26}{space 2} .0666981{col 37}{space 1}   -0.55{col 46}{space 3}0.590{col 54}{space 4}-.1788578{col 67}{space 3} .1054696
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .1529291{col 26}{space 2}  .044095{col 37}{space 1}    3.47{col 46}{space 3}0.003{col 54}{space 4} .0589428{col 67}{space 3} .2469154
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .8106684{col 26}{space 2} .0993928{col 37}{space 1}    8.16{col 46}{space 3}0.000{col 54}{space 4} .5988177{col 67}{space 3} 1.022519
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. areg Vote T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:4.17}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0116}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0552}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0314}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3989}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0742754{col 26}{space 2} .0397752{col 37}{space 1}   -1.87{col 46}{space 3}0.082{col 54}{space 4}-.1590542{col 67}{space 3} .0105034
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.1012111{col 26}{space 2} .0555302{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.2195708{col 67}{space 3} .0171487
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0159745{col 26}{space 2} .0384247{col 37}{space 1}   -0.42{col 46}{space 3}0.683{col 54}{space 4}-.0978748{col 67}{space 3} .0659258
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .0445115{col 26}{space 2} .0725411{col 37}{space 1}    0.61{col 46}{space 3}0.549{col 54}{space 4}-.1101062{col 67}{space 3} .1991291
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}  .040844{col 26}{space 2}  .059023{col 37}{space 1}    0.69{col 46}{space 3}0.500{col 54}{space 4}-.0849606{col 67}{space 3} .1666486
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0864856{col 26}{space 2} .0356651{col 37}{space 1}    2.42{col 46}{space 3}0.028{col 54}{space 4} .0104672{col 67}{space 3}  .162504
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .7763017{col 26}{space 2}  .043528{col 37}{space 1}   17.83{col 46}{space 3}0.000{col 54}{space 4} .6835239{col 67}{space 3} .8690796
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. 
. areg no_names T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:3.36}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0265}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0592}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0168}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.7639}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    no_names{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0700237{col 26}{space 2} .1107879{col 37}{space 1}    0.63{col 46}{space 3}0.537{col 54}{space 4} -.166115{col 67}{space 3} .3061625
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.1890599{col 26}{space 2} .0975302{col 37}{space 1}   -1.94{col 46}{space 3}0.072{col 54}{space 4}-.3969405{col 67}{space 3} .0188207
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0143652{col 26}{space 2} .1484556{col 37}{space 1}    0.10{col 46}{space 3}0.924{col 54}{space 4}-.3020603{col 67}{space 3} .3307907
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}-.2476343{col 26}{space 2} .1567915{col 37}{space 1}   -1.58{col 46}{space 3}0.135{col 54}{space 4}-.5818274{col 67}{space 3} .0865588
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-.1755509{col 26}{space 2} .1413117{col 37}{space 1}   -1.24{col 46}{space 3}0.233{col 54}{space 4}-.4767496{col 67}{space 3} .1256478
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .1708687{col 26}{space 2} .1098953{col 37}{space 1}    1.55{col 46}{space 3}0.141{col 54}{space 4}-.0633676{col 67}{space 3} .4051049
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5718097{col 26}{space 2} .1526366{col 37}{space 1}    3.75{col 46}{space 3}0.002{col 54}{space 4} .2464725{col 67}{space 3}  .897147
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Candidates (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. areg no_names T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:1.05}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.4345}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0410}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0169}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.6088}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    no_names{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0105093{col 26}{space 2} .0683735{col 37}{space 1}   -0.15{col 46}{space 3}0.880{col 54}{space 4}-.1562439{col 67}{space 3} .1352254
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0347524{col 26}{space 2} .0875277{col 37}{space 1}   -0.40{col 46}{space 3}0.697{col 54}{space 4}-.2213133{col 67}{space 3} .1518084
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0038944{col 26}{space 2} .1138362{col 37}{space 1}    0.03{col 46}{space 3}0.973{col 54}{space 4}-.2387416{col 67}{space 3} .2465304
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}  .006058{col 26}{space 2} .0851511{col 37}{space 1}    0.07{col 46}{space 3}0.944{col 54}{space 4}-.1754373{col 67}{space 3} .1875534
{txt}{space 6}major2 {c |}{col 14}{res}{space 2} .0675086{col 26}{space 2}  .117263{col 37}{space 1}    0.58{col 46}{space 3}0.573{col 54}{space 4}-.1824315{col 67}{space 3} .3174487
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0779451{col 26}{space 2} .0473936{col 37}{space 1}    1.64{col 46}{space 3}0.121{col 54}{space 4} -.023072{col 67}{space 3} .1789621
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2891666{col 26}{space 2} .0831668{col 37}{space 1}    3.48{col 46}{space 3}0.003{col 54}{space 4} .1119007{col 67}{space 3} .4664325
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Candidates (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}.  
. areg no_positions T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:1.90}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.1472}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0805}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0391}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.5093}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}no_positions{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .1062642{col 26}{space 2} .0449291{col 37}{space 1}    2.37{col 46}{space 3}0.032{col 54}{space 4}    .0105{col 67}{space 3} .2020283
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0211447{col 26}{space 2} .0573776{col 37}{space 1}   -0.37{col 46}{space 3}0.718{col 54}{space 4}-.1434422{col 67}{space 3} .1011527
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .1121931{col 26}{space 2} .0761315{col 37}{space 1}    1.47{col 46}{space 3}0.161{col 54}{space 4}-.0500774{col 67}{space 3} .2744636
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}-.2521241{col 26}{space 2} .1140574{col 37}{space 1}   -2.21{col 46}{space 3}0.043{col 54}{space 4}-.4952317{col 67}{space 3}-.0090165
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-.1935542{col 26}{space 2} .0931038{col 37}{space 1}   -2.08{col 46}{space 3}0.055{col 54}{space 4}-.3920003{col 67}{space 3} .0048919
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0792512{col 26}{space 2} .0805038{col 37}{space 1}    0.98{col 46}{space 3}0.341{col 54}{space 4}-.0923386{col 67}{space 3} .2508411
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2890154{col 26}{space 2} .0845446{col 37}{space 1}    3.42{col 46}{space 3}0.004{col 54}{space 4} .1088128{col 67}{space 3}  .469218
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Positions (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. 
. areg no_positions T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:0.46}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.8238}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0303}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0059}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4113}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}no_positions{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0078448{col 26}{space 2} .0421912{col 37}{space 1}    0.19{col 46}{space 3}0.855{col 54}{space 4}-.0820837{col 67}{space 3} .0977733
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0298582{col 26}{space 2} .0648701{col 37}{space 1}    0.46{col 46}{space 3}0.652{col 54}{space 4}-.1084091{col 67}{space 3} .1681256
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0412916{col 26}{space 2} .0741582{col 37}{space 1}   -0.56{col 46}{space 3}0.586{col 54}{space 4}-.1993561{col 67}{space 3} .1167728
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .0236325{col 26}{space 2} .0365483{col 37}{space 1}    0.65{col 46}{space 3}0.528{col 54}{space 4}-.0542683{col 67}{space 3} .1015333
{txt}{space 6}major2 {c |}{col 14}{res}{space 2} .0330884{col 26}{space 2} .0469891{col 37}{space 1}    0.70{col 46}{space 3}0.492{col 54}{space 4}-.0670664{col 67}{space 3} .1332432
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0098464{col 26}{space 2} .0365609{col 37}{space 1}    0.27{col 46}{space 3}0.791{col 54}{space 4}-.0680814{col 67}{space 3} .0877741
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .128387{col 26}{space 2} .0549945{col 37}{space 1}    2.33{col 46}{space 3}0.034{col 54}{space 4}  .011169{col 67}{space 3}  .245605
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Name Positions (#)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. 
. areg Q11_7 T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:1.46}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.2579}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0798}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0383}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4232}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       Q11_7{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .1235526{col 26}{space 2} .0707538{col 37}{space 1}    1.75{col 46}{space 3}0.101{col 54}{space 4}-.0272554{col 67}{space 3} .2743607
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0365999{col 26}{space 2} .0635143{col 37}{space 1}    0.58{col 46}{space 3}0.573{col 54}{space 4}-.0987777{col 67}{space 3} .1719775
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .1328107{col 26}{space 2} .0773045{col 37}{space 1}    1.72{col 46}{space 3}0.106{col 54}{space 4}-.0319599{col 67}{space 3} .2975814
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}-.2142152{col 26}{space 2}  .086662{col 37}{space 1}   -2.47{col 46}{space 3}0.026{col 54}{space 4} -.398931{col 67}{space 3}-.0294994
{txt}{space 6}major2 {c |}{col 14}{res}{space 2} -.204877{col 26}{space 2} .0998467{col 37}{space 1}   -2.05{col 46}{space 3}0.058{col 54}{space 4}-.4176953{col 67}{space 3} .0079413
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2}-.0222298{col 26}{space 2} .0667882{col 37}{space 1}   -0.33{col 46}{space 3}0.744{col 54}{space 4}-.1645855{col 67}{space 3} .1201259
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3418321{col 26}{space 2} .0924351{col 37}{space 1}    3.70{col 46}{space 3}0.002{col 54}{space 4} .1448115{col 67}{space 3} .5388528
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. 
. areg Q11_7 T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:4.34}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0098}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0461}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0221}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4280}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       Q11_7{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .0517538{col 26}{space 2} .0590886{col 37}{space 1}    0.88{col 46}{space 3}0.395{col 54}{space 4}-.0741905{col 67}{space 3} .1776981
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0409761{col 26}{space 2} .0517945{col 37}{space 1}   -0.79{col 46}{space 3}0.441{col 54}{space 4}-.1513735{col 67}{space 3} .0694214
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0057433{col 26}{space 2} .0336328{col 37}{space 1}   -0.17{col 46}{space 3}0.867{col 54}{space 4}  -.07743{col 67}{space 3} .0659434
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .0731679{col 26}{space 2} .0474609{col 37}{space 1}    1.54{col 46}{space 3}0.144{col 54}{space 4}-.0279925{col 67}{space 3} .1743284
{txt}{space 6}major2 {c |}{col 14}{res}{space 2} .0359044{col 26}{space 2}  .051228{col 37}{space 1}    0.70{col 46}{space 3}0.494{col 54}{space 4}-.0732855{col 67}{space 3} .1450943
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0712098{col 26}{space 2} .0500889{col 37}{space 1}    1.42{col 46}{space 3}0.176{col 54}{space 4}-.0355521{col 67}{space 3} .1779716
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1832723{col 26}{space 2} .0733293{col 37}{space 1}    2.50{col 46}{space 3}0.025{col 54}{space 4} .0269746{col 67}{space 3}   .33957
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster excel 
{txt}{browse `"Tables\AppendixF2.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixF2.txt", label"':seeout}

{com}. 
. areg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:2.74}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0527}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0536}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0109}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4733}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNALegitim~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}  .099765{col 26}{space 2} .0667141{col 37}{space 1}    1.50{col 46}{space 3}0.156{col 54}{space 4}-.0424327{col 67}{space 3} .2419626
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0901851{col 26}{space 2} .0611572{col 37}{space 1}   -1.47{col 46}{space 3}0.161{col 54}{space 4}-.2205386{col 67}{space 3} .0401683
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0911318{col 26}{space 2} .0892415{col 37}{space 1}    1.02{col 46}{space 3}0.323{col 54}{space 4}-.0990819{col 67}{space 3} .2813455
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}-.0887431{col 26}{space 2} .0825179{col 37}{space 1}   -1.08{col 46}{space 3}0.299{col 54}{space 4}-.2646258{col 67}{space 3} .0871396
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-.0930682{col 26}{space 2} .0975069{col 37}{space 1}   -0.95{col 46}{space 3}0.355{col 54}{space 4}-.3008992{col 67}{space 3} .1147627
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0432139{col 26}{space 2}  .075649{col 37}{space 1}    0.57{col 46}{space 3}0.576{col 54}{space 4}-.1180281{col 67}{space 3} .2044559
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3740467{col 26}{space 2} .0858681{col 37}{space 1}    4.36{col 46}{space 3}0.001{col 54}{space 4} .1910231{col 67}{space 3} .5570703
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster replace 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF3.txt", label"':seeout}

{com}. 
. areg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:4.91}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0058}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0383}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0141}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4495}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNALegitim~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .1003642{col 26}{space 2} .0421171{col 37}{space 1}    2.38{col 46}{space 3}0.031{col 54}{space 4} .0105938{col 67}{space 3} .1901347
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .0470032{col 26}{space 2} .0374233{col 37}{space 1}    1.26{col 46}{space 3}0.228{col 54}{space 4}-.0327627{col 67}{space 3}  .126769
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0146172{col 26}{space 2} .0665085{col 37}{space 1}    0.22{col 46}{space 3}0.829{col 54}{space 4}-.1271423{col 67}{space 3} .1563767
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .0359124{col 26}{space 2} .0639611{col 37}{space 1}    0.56{col 46}{space 3}0.583{col 54}{space 4}-.1004175{col 67}{space 3} .1722424
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-.0252631{col 26}{space 2} .0421423{col 37}{space 1}   -0.60{col 46}{space 3}0.558{col 54}{space 4}-.1150873{col 67}{space 3}  .064561
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .0003499{col 26}{space 2} .0305489{col 37}{space 1}    0.01{col 46}{space 3}0.991{col 54}{space 4}-.0647636{col 67}{space 3} .0654634
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6750444{col 26}{space 2}  .062331{col 37}{space 1}   10.83{col 46}{space 3}0.000{col 54}{space 4}  .542189{col 67}{space 3} .8078997
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF3.txt", label"':seeout}

{com}. 
. areg VNAConfidence_all T1 T2 T3 major1 major2 HCMC if Questionnaire_order==1, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:256}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:2.18}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.1035}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0708}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0290}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:3.6544}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNAConfide~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .8120754{col 26}{space 2} .3608535{col 37}{space 1}    2.25{col 46}{space 3}0.040{col 54}{space 4} .0429342{col 67}{space 3} 1.581216
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.4335258{col 26}{space 2} .4157503{col 37}{space 1}   -1.04{col 46}{space 3}0.314{col 54}{space 4}-1.319677{col 67}{space 3} .4526251
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .6413158{col 26}{space 2} .7421018{col 37}{space 1}    0.86{col 46}{space 3}0.401{col 54}{space 4}-.9404367{col 67}{space 3} 2.223068
{txt}{space 6}major1 {c |}{col 14}{res}{space 2}-1.276021{col 26}{space 2} .7149573{col 37}{space 1}   -1.78{col 46}{space 3}0.095{col 54}{space 4}-2.799917{col 67}{space 3} .2478741
{txt}{space 6}major2 {c |}{col 14}{res}{space 2}-1.606745{col 26}{space 2} .7171693{col 37}{space 1}   -2.24{col 46}{space 3}0.041{col 54}{space 4}-3.135355{col 67}{space 3}-.0781351
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2} .2213931{col 26}{space 2} .4254704{col 37}{space 1}    0.52{col 46}{space 3}0.610{col 54}{space 4}-.6854755{col 67}{space 3} 1.128262
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.923686{col 26}{space 2} .6293046{col 37}{space 1}    6.23{col 46}{space 3}0.000{col 54}{space 4} 2.582355{col 67}{space 3} 5.265017
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixF3.txt", label"':seeout}

{com}. 
. areg  VNAConfidence_all T1 T2 T3 major1 major2 HCMC if Questionnaire_order==2, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:450}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:6}, {res:15})}{col 70} = {res}{ralign 6:4.47}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0087}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0461}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0221}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:1.7599}

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}VNAConfide~l{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2} .2412753{col 26}{space 2} .1575627{col 37}{space 1}    1.53{col 46}{space 3}0.147{col 54}{space 4}-.0945616{col 67}{space 3} .5771122
{txt}{space 10}T2 {c |}{col 14}{res}{space 2} .2286578{col 26}{space 2} .2285668{col 37}{space 1}    1.00{col 46}{space 3}0.333{col 54}{space 4}-.2585209{col 67}{space 3} .7158364
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}  .099296{col 26}{space 2} .1271672{col 37}{space 1}    0.78{col 46}{space 3}0.447{col 54}{space 4}-.1717546{col 67}{space 3} .3703465
{txt}{space 6}major1 {c |}{col 14}{res}{space 2} .3248165{col 26}{space 2} .2097364{col 37}{space 1}    1.55{col 46}{space 3}0.142{col 54}{space 4} -.122226{col 67}{space 3}  .771859
{txt}{space 6}major2 {c |}{col 14}{res}{space 2} .4969303{col 26}{space 2} .1408693{col 37}{space 1}    3.53{col 46}{space 3}0.003{col 54}{space 4} .1966745{col 67}{space 3} .7971861
{txt}{space 8}HCMC {c |}{col 14}{res}{space 2}-.1716418{col 26}{space 2} .1222363{col 37}{space 1}   -1.40{col 46}{space 3}0.181{col 54}{space 4}-.4321823{col 67}{space 3} .0888986
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 6.553586{col 26}{space 2} .1908279{col 37}{space 1}   34.34{col 46}{space 3}0.000{col 54}{space 4} 6.146846{col 67}{space 3} 6.960326
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixF3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote for Positive Change") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster excel
{txt}{browse `"Tables\AppendixF3.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixF3.txt", label"':seeout}

{com}. 
. 
. /********Multiple Comparisons*****************************/
. /*log using "Tables\AppendixF2.smcl", replace*/
. preserve 
{txt}
{com}. keep if Questionnaire_order==1
{txt}(765 observations deleted)

{com}. wyoung Vote no_names no_positions Q11_7, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}12{txt} hypothesis tests

familyp: {res}T1
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                               {res} 1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T1 {txt}{c |} {res}-.00959577 {txt}{c |} {res} .0645176 {txt}{c |} {res}.88374697 {txt}{c |} {res}   .996 {txt}{c |} {res}        1  {txt}{c |} {res}.99842887  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                               {res} 2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T1 {txt}{c |} {res} .07002372 {txt}{c |} {res}.11078788 {txt}{c |} {res}.53686802 {txt}{c |} {res}   .966 {txt}{c |} {res}        1  {txt}{c |} {res}.99283748  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                               {res} 3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T1 {txt}{c |} {res} .10626416 {txt}{c |} {res} .0449291 {txt}{c |} {res}.03192308 {txt}{c |} {res}   .279 {txt}{c |} {res}.38307699  {txt}{c |} {res}.32248583  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                               {res} 4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T1 {txt}{c |} {res} .12355264 {txt}{c |} {res}.07075376 {txt}{c |} {res}.10121056 {txt}{c |} {res}   .514 {txt}{c |} {res}        1  {txt}{c |} {res}.65598325  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                               {res} 5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T2 {txt}{c |} {res}-.05053832 {txt}{c |} {res}.07419722 {txt}{c |} {res}.50616614 {txt}{c |} {res}   .962 {txt}{c |} {res}        1  {txt}{c |} {res}.99283748  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                               {res} 6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T2 {txt}{c |} {res}-.18905988 {txt}{c |} {res}.09753016 {txt}{c |} {res}.07161877 {txt}{c |} {res}   .422 {txt}{c |} {res}.78780646  {txt}{c |} {res}.55843985  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  7. {c |}                                                k                                                {c |}
     {c |}                                               {res} 7                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T2 {txt}{c |} {res}-.02114473 {txt}{c |} {res}.05737759 {txt}{c |} {res}.71763552 {txt}{c |} {res}   .986 {txt}{c |} {res}        1  {txt}{c |} {res}.99364318  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  8. {c |}                                                k                                                {c |}
     {c |}                                               {res} 8                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T2 {txt}{c |} {res}  .0365999 {txt}{c |} {res}.06351434 {txt}{c |} {res} .5729944 {txt}{c |} {res}   .966 {txt}{c |} {res}        1  {txt}{c |} {res}.99283748  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  9. {c |}                                                k                                                {c |}
     {c |}                                               {res} 9                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T3 {txt}{c |} {res} .00450458 {txt}{c |} {res}.06758555 {txt}{c |} {res}.94774051 {txt}{c |} {res}   .996 {txt}{c |} {res}        1  {txt}{c |} {res}.99842887  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 10. {c |}                                                k                                                {c |}
     {c |}                                               {res}10                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T3 {txt}{c |} {res} .01436517 {txt}{c |} {res}.14845555 {txt}{c |} {res}.92419476 {txt}{c |} {res}   .996 {txt}{c |} {res}        1  {txt}{c |} {res}.99842887  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 11. {c |}                                                k                                                {c |}
     {c |}                                               {res}11                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T3 {txt}{c |} {res} .11219312 {txt}{c |} {res}.07613153 {txt}{c |} {res} .1612443 {txt}{c |} {res}   .609 {txt}{c |} {res}        1  {txt}{c |} {res}.75504636  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 12. {c |}                                                k                                                {c |}
     {c |}                                               {res}12                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T3 {txt}{c |} {res} .13281071 {txt}{c |} {res} .0773045 {txt}{c |} {res}.10635925 {txt}{c |} {res}   .514 {txt}{c |} {res}        1  {txt}{c |} {res}.65598325  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}
{res}{txt}
{com}. restore
{txt}
{com}. 
. preserve 
{txt}
{com}. keep if Questionnaire_order==2
{txt}(572 observations deleted)

{com}. wyoung Vote no_names no_positions Q11_7, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}12{txt} hypothesis tests

familyp: {res}T1
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                               {res} 1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T1 {txt}{c |} {res}-.07427539 {txt}{c |} {res} .0397752 {txt}{c |} {res}.08151417 {txt}{c |} {res}   .552 {txt}{c |} {res}.97817004  {txt}{c |} {res}.63952967  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                               {res} 2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T1 {txt}{c |} {res}-.01050926 {txt}{c |} {res}.06837348 {txt}{c |} {res}.87989211 {txt}{c |} {res}   .998 {txt}{c |} {res}        1  {txt}{c |} {res}.99955779  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                               {res} 3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T1 {txt}{c |} {res} .00784484 {txt}{c |} {res}.04219125 {txt}{c |} {res}.85498671 {txt}{c |} {res}   .998 {txt}{c |} {res}        1  {txt}{c |} {res}.99955779  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                               {res} 4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T1 {txt}{c |} {res} .05175384 {txt}{c |} {res}.05908857 {txt}{c |} {res}.39491112 {txt}{c |} {res}   .935 {txt}{c |} {res}        1  {txt}{c |} {res}.99342052  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                               {res} 5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T2 {txt}{c |} {res}-.10121106 {txt}{c |} {res}.05553017 {txt}{c |} {res}.08835285 {txt}{c |} {res}   .552 {txt}{c |} {res}.97817004  {txt}{c |} {res}.63952967  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                               {res} 6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T2 {txt}{c |} {res}-.03475245 {txt}{c |} {res}.08752768 {txt}{c |} {res} .6969262 {txt}{c |} {res}   .992 {txt}{c |} {res}        1  {txt}{c |} {res} .9993809  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  7. {c |}                                                k                                                {c |}
     {c |}                                               {res} 7                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T2 {txt}{c |} {res} .02985824 {txt}{c |} {res} .0648701 {txt}{c |} {res}.65191889 {txt}{c |} {res}    .99 {txt}{c |} {res}        1  {txt}{c |} {res} .9993809  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  8. {c |}                                                k                                                {c |}
     {c |}                                               {res} 8                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T2 {txt}{c |} {res}-.04097608 {txt}{c |} {res}.05179455 {txt}{c |} {res}.44120032 {txt}{c |} {res}   .942 {txt}{c |} {res}        1  {txt}{c |} {res}.99468742  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
  9. {c |}                                                k                                                {c |}
     {c |}                                               {res} 9                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Vote T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingd.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}        Vote {txt}{c |} {res}     T3 {txt}{c |} {res} -.0159745 {txt}{c |} {res}.03842471 {txt}{c |} {res} .6834903 {txt}{c |} {res}   .992 {txt}{c |} {res}        1  {txt}{c |} {res} .9993809  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 10. {c |}                                                k                                                {c |}
     {c |}                                               {res}10                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_names T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(vot.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}    no_names {txt}{c |} {res}     T3 {txt}{c |} {res}  .0038944 {txt}{c |} {res}.11383616 {txt}{c |} {res}.97316036 {txt}{c |} {res}   .998 {txt}{c |} {res}        1  {txt}{c |} {res}.99955779  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 11. {c |}                                                k                                                {c |}
     {c |}                                               {res}11                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg no_positions T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}no_positions {txt}{c |} {res}     T3 {txt}{c |} {res}-.04129164 {txt}{c |} {res}.07415819 {txt}{c |} {res}.58587316 {txt}{c |} {res}   .981 {txt}{c |} {res}        1  {txt}{c |} {res} .9991349  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}

     {c TLC}{hline 97}{c TRC}
 12. {c |}                                                k                                                {c |}
     {c |}                                               {res}12                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg Q11_7 T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(voting.. {txt}{c |}
     {c LT}{hline 14}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 11}{c TT}{hline 9}{c TT}{hline 12}{c TT}{hline 12}{c RT}
     {c |}      outcome {c |} familyp {c |}       coef {c |}    stderr {c |}         p {c |} pwyoung {c |}     pbonf  {c |}    psidak  {c |}
     {c |} {res}       Q11_7 {txt}{c |} {res}     T3 {txt}{c |} {res}-.00574331 {txt}{c |} {res}.03363283 {txt}{c |} {res}.86669059 {txt}{c |} {res}   .998 {txt}{c |} {res}        1  {txt}{c |} {res}.99955779  {txt}{c |}
     {c BLC}{hline 14}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 11}{c BT}{hline 9}{c BT}{hline 12}{c BT}{hline 12}{c BRC}
{res}{txt}
{com}. restore
{txt}
{com}. /*log close*/
. 
. /*log using "Tables\AppendixF3.smcl", replace*/
. preserve 
{txt}
{com}. keep if Questionnaire_order==1
{txt}(765 observations deleted)

{com}. wyoung VNALegitimacy_all VNAConfidence_all, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}6{txt} hypothesis tests

familyp: {res}T1
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                                {res}1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T1  {txt}{c |} {res} .09976495  {txt}{c |} {res}.06671408  {txt}{c |} {res}.15554766  {txt}{c |}  {res}   .484  {txt}{c |}  {res}.77773829  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.57058647                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                                {res}2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T1  {txt}{c |} {res} .81207535  {txt}{c |} {res}.36085354  {txt}{c |} {res}.03985513  {txt}{c |}  {res}   .196  {txt}{c |}  {res}.23913079  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.21653322                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                                {res}3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T2  {txt}{c |} {res}-.09018513  {txt}{c |} {res}.06115719  {txt}{c |} {res}.16098642  {txt}{c |}  {res}   .484  {txt}{c |}  {res}.77773829  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.57058647                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                                {res}4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T2  {txt}{c |} {res} -.4335258  {txt}{c |} {res}.41575033  {txt}{c |} {res}.31357715  {txt}{c |}  {res}   .616  {txt}{c |}  {res}.94073146  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.67657381                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                                {res}5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T3  {txt}{c |} {res}  .0911318  {txt}{c |} {res} .0892415  {txt}{c |} {res}.32335666  {txt}{c |}  {res}   .616  {txt}{c |}  {res}.94073146  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.67657381                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                                {res}6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 13}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}       coef  {c |}    stderr  {c |}         p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T3  {txt}{c |} {res} .64131578  {txt}{c |} {res}.74210179  {txt}{c |} {res}.40109305  {txt}{c |}  {res}   .616  {txt}{c |}  {res}.94073146  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 13}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.67657381                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}
{res}{txt}
{com}. restore
{txt}
{com}. 
. preserve 
{txt}
{com}. keep if Questionnaire_order==2
{txt}(572 observations deleted)

{com}. wyoung VNALegitimacy_all VNAConfidence_all, cmd(reg OUTCOMEVAR T1 T2 T3 CONTROLVARS, cluster(votingdivision2)) controls("major1 major2 HCMC strata2 strata3 strata4 strata5 strata6" "major1 major2 HCMC strata2 strata3 strata4 strata5 strata6")  familyp(T1 T2 T3) bootstraps(1000) seed(20241016) cluster(votingdivision2)
{txt}Estimating family-wise adjusted {it:p}-values for {res}6{txt} hypothesis tests

familyp: {res}T1
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T2
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
{txt}
familyp: {res}T3
    reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)
    reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cluster(votingdivision2)

     {txt}{c TLC}{hline 97}{c TRC}
  1. {c |}                                                k                                                {c |}
     {c |}                                                {res}1                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T1  {txt}{c |} {res}.10036425  {txt}{c |} {res}.04211711  {txt}{c |}  {res}.03083281  {txt}{c |}  {res}   .157  {txt}{c |}  {res}.18499686  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.17130977                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  2. {c |}                                                k                                                {c |}
     {c |}                                                {res}2                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T1  {txt}{c |} {res} .2412753  {txt}{c |} {res}.15756268  {txt}{c |}  {res}.14651138  {txt}{c |}  {res}   .439  {txt}{c |}  {res}.73255691  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.54711424                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  3. {c |}                                                k                                                {c |}
     {c |}                                                {res}3                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T2  {txt}{c |} {res}.04700319  {txt}{c |} {res}.03742329  {txt}{c |}  {res}.22833165  {txt}{c |}  {res}   .526  {txt}{c |}  {res}.91332661  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.64541305                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  4. {c |}                                                k                                                {c |}
     {c |}                                                {res}4                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T2  {txt}{c |} {res}.22865778  {txt}{c |} {res}.22856682  {txt}{c |}  {res}.33298384  {txt}{c |}  {res}   .639  {txt}{c |}  {res}.99895152  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.70323747                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  5. {c |}                                                k                                                {c |}
     {c |}                                                {res}5                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNALegitimacy_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNALegitimacy_all  {txt}{c |} {res}     T3  {txt}{c |} {res}.01461721  {txt}{c |} {res}.06650848  {txt}{c |}  {res}.82900575  {txt}{c |}  {res}   .836  {txt}{c |}  {res}.99895152  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.82900575                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}

     {c TLC}{hline 97}{c TRC}
  6. {c |}                                                k                                                {c |}
     {c |}                                                {res}6                                                {txt}{c |}
     {c LT}{hline 97}{c RT}
     {c |} model                                                                                           {c |}
     {c |} {res}reg VNAConfidence_all T1 T2 T3 major1 major2 HCMC strata2 strata3 strata4 strata5 strata6, cl.. {txt}{c |}
     {c LT}{hline 20}{c TT}{hline 10}{c TT}{hline 12}{c TT}{hline 12}{c TT}{hline 13}{c TT}{hline 11}{c TT}{hline 13}{c RT}
     {c |}           outcome  {c |} familyp  {c |}      coef  {c |}    stderr  {c |}          p  {c |}  pwyoung  {c |}      pbonf  {c |}
     {c |} {res}VNAConfidence_all  {txt}{c |} {res}     T3  {txt}{c |} {res}.09929595  {txt}{c |} {res}.12716722  {txt}{c |}  {res}.44705112  {txt}{c |}  {res}   .671  {txt}{c |}  {res}.99895152  {txt}{c |}
     {c LT}{hline 20}{c BT}{hline 10}{c BT}{hline 12}{c BT}{hline 12}{c BT}{hline 13}{c BT}{hline 11}{c BT}{hline 13}{c RT}
     {c |}                                               psidak                                            {c |}
     {c |}                                            {res}.70323747                                            {txt}{c |}
     {c BLC}{hline 97}{c BRC}
{res}{txt}
{com}. restore
{txt}
{com}. /*log close*/
. /*********************************************************************************************************************************************************************************************************************************/
. /*Appendix G: Qualitative Interviews*/
. generate qualitative=2 if treatment_group==0
{txt}(768 missing values generated)

{com}. replace qualitative=8 if treatment_group==1
{txt}(255 real changes made)

{com}. replace qualitative=2 if treatment_group==2
{txt}(254 real changes made)

{com}. replace qualitative=5 if treatment_group==3
{txt}(258 real changes made)

{com}. 
. graph hbar (mean) qualitative, over(treatment_group, label(labcolor("black") labsize(medium))) bar(1, fcolor(blue)) blabel(bar, size(medsmall))  ytitle("Number of Qualitative Interviews")
{res}{txt}
{com}. graph save "Figures\AppendixG.gph", replace
{res}{txt}file {bf:Figures\AppendixG.gph} saved

{com}. graph export "Figures\AppendixG.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixG.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. /*********************************************************************************************************************************************************************************************************************************/
. /*Appendix H: Reason for Voting in Control Group (n=181)*/
. preserve
{txt}
{com}. /*Multiply by 100 to create percentages for graphing*/
. foreach x in Q11_1 Q11_2 Q11_3 Q11_4 Q11_5 Q11_6 Q11_7 Q11_8 Q11_9 Q11_10 Q11_11 Q11_12 Q11_13 Q11_14 Q11_15{c -(}
{txt}  2{com}.         replace `x'=`x'*100
{txt}  3{com}. {c )-}
{txt}(54 real changes made)
(22 real changes made)
(38 real changes made)
(15 real changes made)
(19 real changes made)
(85 real changes made)
(175 real changes made)
(125 real changes made)
(199 real changes made)
(21 real changes made)
(54 real changes made)
(12 real changes made)
(50 real changes made)
(89 real changes made)
(25 real changes made)

{com}. 
. graph hbar Q11* if treatment_group==0, legend(pos(9) size(medium) label(1 No Reason) label(2 Name topped list) label(3 Relative/friend instructed) label(4 Voting staff instructed) label(5 Personally know candidate) label(6 Personalistic benefits) label(7 Positive change for community) label(8 Represent citizens' interests) label(9 Professional qualifications) label(10 Candidate's gender) label(11 Candidate's age) label(12 Candidate's race) label(13 Candidate's mass organization) label(14 Local knowledge) label(15 Vote for disadvantaged group)) blabel(bar, size(small) position(Inside) format(%3.1f)) ylab(0(2)28, labsize(small)) ytitle("Main reason for vote choice (%)", size(medium) margin(medsmall))
{res}{p 0 4 2}
{txt}(note:  named style
Inside not found in class
barlabelpos,  default attributes used)
{p_end}
{txt}{p 0 8} (note:  barlabelpos  {txt}not found in scheme, default attributes used){p_end}
{res}{txt}
{com}. graph save "Figures\AppendixH.gph", replace
{res}{txt}file {bf:Figures\AppendixH.gph} saved

{com}. graph export "Figures\AppendixH.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixH.pdf{rm}
saved as
PDF
format
{p_end}

{com}. restore
{txt}
{com}. /*********************************************************************************************************************************************************************************************************************************/
. /*Appendix I*/
. gen yu_aff=0
{txt}
{com}. replace yu=1 if selfingov_yu==1
{txt}(886 real changes made)

{com}. label val yu_aff polibg2
{txt}
{com}. label var yu_aff "Affiliated with YU?"
{txt}
{com}. tabout politicsinterest_rc yu_aff using "Tables\AppendixI", append cells(freq col) f(0c 2p) stats(chi2)
{res}
{txt}Table output written to: Tables\AppendixI

{res}        Affiliated with YU?                                     
Generally speaking, how much interest do you usually have in politics?  No      No      Yes     Yes     Total   Total
        No.     %       No.     %       No.     %
None    23      17.04%  103     11.63%  126     12.34%
Not much        27      20.00%  282     31.83%  309     30.26%
Some/A good deal        85      62.96%  501     56.55%  586     57.39%
Total   135     100.00% 886     100.00% 1,021   100.00%

Pearson chi2(2) = 9.0364 Pr = 0.011                                             

        Affiliated with YU?                                     
Generally speaking, how much interest do you usually have in politics?  No      No      Yes     Yes     Total   Total
        No.     %       No.     %       No.     %
None    23      17.04%  103     11.63%  126     12.34%
Not much        27      20.00%  282     31.83%  309     30.26%
Some/A good deal        85      62.96%  501     56.55%  586     57.39%
Total   135     100.00% 886     100.00% 1,021   100.00%

Pearson chi2(2) = 9.0364 Pr = 0.011                                             

        Affiliated with YU?                                     
Generally speaking, how much interest do you usually have in politics?  No      No      Yes     Yes     Total   Total
        No.     %       No.     %       No.     %
None    23      17.04%  103     11.63%  126     12.34%
Not much        27      20.00%  282     31.83%  309     30.26%
Some/A good deal        85      62.96%  501     56.55%  586     57.39%
Total   135     100.00% 886     100.00% 1,021   100.00%

Pearson chi2(2) = 9.0364 Pr = 0.011                                             
{txt}
{com}. /*************************************************************************************************************************************
> 
> 
> 
> 

{txt}end of do-file

{com}. /*************************************************************************************************/
. 
. /*************************************************************************************************/
. /*Appendices: Appendices J, K, & L 
> Appendix J: Line 8
> Appendix K1: Line 26
> Appendix K2: Line 47
> Appendix K3: Line 62
> Appendix L1: Line 73
> Appendix L2: Line 103
> Appendix L3: Line 133
> Appendix L4: Line 163
> */
. do 6_VNA_AppendixJKL.do
{txt}
{com}. /*Prepared Using STATA 19 MP: September 19, 2025*/
. cap cd "C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"
{txt}
{com}. use "9_election_working.dta", clear
{txt}
{com}. set scheme plottig
{txt}
{com}. 
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix J: Sharp Null Test of Voting Results*/
. reg Vote T1 T2 T3, cluster(votingdivision2) 

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.67
                                                {txt}Prob > F          = {res}    0.0850
                                                {txt}R-squared         = {res}    0.0065
                                                {txt}Root MSE          =    {res} .39288

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0464829{col 26}{space 2} .0254925{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.1008189{col 67}{space 3} .0078531
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0754112{col 26}{space 2} .0384426{col 37}{space 1}   -1.96{col 46}{space 3}0.069{col 54}{space 4}-.1573496{col 67}{space 3} .0065272
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0016287{col 26}{space 2} .0247518{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4} -.054386{col 67}{space 3} .0511286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .839779{col 26}{space 2} .0304323{col 37}{space 1}   27.60{col 46}{space 3}0.000{col 54}{space 4} .7749142{col 67}{space 3} .9046439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixJ", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixJ.txt", label"':seeout}

{com}. areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:22.84}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0422}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0256}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3885}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0460717{col 33}{space 2} .0294738{col 44}{space 1}   -1.56{col 53}{space 3}0.139{col 61}{space 4}-.1088936{col 74}{space 3} .0167503
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0790366{col 33}{space 2} .0410684{col 44}{space 1}   -1.92{col 53}{space 3}0.073{col 61}{space 4}-.1665717{col 74}{space 3} .0084985
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0006271{col 33}{space 2} .0292228{col 44}{space 1}   -0.02{col 53}{space 3}0.983{col 61}{space 4} -.062914{col 74}{space 3} .0616599
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0331237{col 33}{space 2} .0512491{col 44}{space 1}    0.65{col 53}{space 3}0.528{col 61}{space 4}-.0761111{col 74}{space 3} .1423586
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0206563{col 33}{space 2} .0422137{col 44}{space 1}    0.49{col 53}{space 3}0.632{col 61}{space 4}  -.06932{col 74}{space 3} .1106326
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1136876{col 33}{space 2} .0287725{col 44}{space 1}    3.95{col 53}{space 3}0.001{col 61}{space 4} .0523605{col 74}{space 3} .1750148
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} -.041315{col 33}{space 2} .0369642{col 44}{space 1}   -1.12{col 53}{space 3}0.281{col 61}{space 4}-.1201022{col 74}{space 3} .0374722
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8468408{col 33}{space 2} .0921538{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .6504198{col 74}{space 3} 1.043262
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixJ", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster excel
{txt}{browse `"Tables\AppendixJ.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixJ.txt", label"':seeout}

{com}. 
. /********Randomization Inference***************/
. /*log using "Tables\AppendixJ.smcl", replace*/
. ritest T1 _b[T1],  kdensityplot reps(1000) seed(125) strata(strata): reg Vote T1 T2 T3, cluster(votingdivision2) 
{res}{txt}(running {bf:regress} on estimation sample)

Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.67
                                                {txt}Prob > F          = {res}    0.0850
                                                {txt}R-squared         = {res}    0.0065
                                                {txt}Root MSE          =    {res} .39288

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0464829{col 26}{space 2} .0254925{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.1008189{col 67}{space 3} .0078531
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0754112{col 26}{space 2} .0384426{col 37}{space 1}   -1.96{col 46}{space 3}0.069{col 54}{space 4}-.1573496{col 67}{space 3} .0065272
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0016287{col 26}{space 2} .0247518{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4} -.054386{col 67}{space 3} .0511286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .839779{col 26}{space 2} .0304323{col 37}{space 1}   27.60{col 46}{space 3}0.000{col 54}{space 4} .7749142{col 67}{space 3} .9046439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:regress Vote T1 T2 T3, cluster(votingdivision2)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T1]}{p_end}
  res. var(s):  T1
   Resampling:  Permuting T1
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0464829{col 27}    166{col 35}   1000{col 43} 0.1660{col 51} 0.0118{col 59} .1434487{col 69}{space 1} .1905368
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. ritest T2 _b[T2],  kdensityplot reps(1000) seed(125) strata(strata): reg Vote T1 T2 T3, cluster(votingdivision2)
{res}{txt}(running {bf:regress} on estimation sample)

Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.67
                                                {txt}Prob > F          = {res}    0.0850
                                                {txt}R-squared         = {res}    0.0065
                                                {txt}Root MSE          =    {res} .39288

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0464829{col 26}{space 2} .0254925{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.1008189{col 67}{space 3} .0078531
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0754112{col 26}{space 2} .0384426{col 37}{space 1}   -1.96{col 46}{space 3}0.069{col 54}{space 4}-.1573496{col 67}{space 3} .0065272
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0016287{col 26}{space 2} .0247518{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4} -.054386{col 67}{space 3} .0511286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .839779{col 26}{space 2} .0304323{col 37}{space 1}   27.60{col 46}{space 3}0.000{col 54}{space 4} .7749142{col 67}{space 3} .9046439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:regress Vote T1 T2 T3, cluster(votingdivision2)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T2]}{p_end}
  res. var(s):  T2
   Resampling:  Permuting T2
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0754112{col 27}     26{col 35}   1000{col 43} 0.0260{col 51} 0.0050{col 59} .0170528{col 69}{space 1} .0378651
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. ritest T3 _b[T3],  kdensityplot reps(1000) seed(125) strata(strata): reg Vote T1 T2 T3, cluster(votingdivision2)  
{res}{txt}(running {bf:regress} on estimation sample)

Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.67
                                                {txt}Prob > F          = {res}    0.0850
                                                {txt}R-squared         = {res}    0.0065
                                                {txt}Root MSE          =    {res} .39288

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        Vote{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0464829{col 26}{space 2} .0254925{col 37}{space 1}   -1.82{col 46}{space 3}0.088{col 54}{space 4}-.1008189{col 67}{space 3} .0078531
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0754112{col 26}{space 2} .0384426{col 37}{space 1}   -1.96{col 46}{space 3}0.069{col 54}{space 4}-.1573496{col 67}{space 3} .0065272
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0016287{col 26}{space 2} .0247518{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4} -.054386{col 67}{space 3} .0511286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .839779{col 26}{space 2} .0304323{col 37}{space 1}   27.60{col 46}{space 3}0.000{col 54}{space 4} .7749142{col 67}{space 3} .9046439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:regress Vote T1 T2 T3, cluster(votingdivision2)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T3]}{p_end}
  res. var(s):  T3
   Resampling:  Permuting T3
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0016287{col 27}    965{col 35}   1000{col 43} 0.9650{col 51} 0.0058{col 59} .9516576{col 69}{space 1} .9755025
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. 
. ritest T1 _b[T1],  kdensityplot reps(1000) seed(125) strata(strata): areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}{txt}(running {bf:areg} on estimation sample)

{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:22.84}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0422}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0256}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3885}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0460717{col 33}{space 2} .0294738{col 44}{space 1}   -1.56{col 53}{space 3}0.139{col 61}{space 4}-.1088936{col 74}{space 3} .0167503
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0790366{col 33}{space 2} .0410684{col 44}{space 1}   -1.92{col 53}{space 3}0.073{col 61}{space 4}-.1665717{col 74}{space 3} .0084985
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0006271{col 33}{space 2} .0292228{col 44}{space 1}   -0.02{col 53}{space 3}0.983{col 61}{space 4} -.062914{col 74}{space 3} .0616599
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0331237{col 33}{space 2} .0512491{col 44}{space 1}    0.65{col 53}{space 3}0.528{col 61}{space 4}-.0761111{col 74}{space 3} .1423586
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0206563{col 33}{space 2} .0422137{col 44}{space 1}    0.49{col 53}{space 3}0.632{col 61}{space 4}  -.06932{col 74}{space 3} .1106326
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1136876{col 33}{space 2} .0287725{col 44}{space 1}    3.95{col 53}{space 3}0.001{col 61}{space 4} .0523605{col 74}{space 3} .1750148
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} -.041315{col 33}{space 2} .0369642{col 44}{space 1}   -1.12{col 53}{space 3}0.281{col 61}{space 4}-.1201022{col 74}{space 3} .0374722
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8468408{col 33}{space 2} .0921538{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .6504198{col 74}{space 3} 1.043262
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T1]}{p_end}
  res. var(s):  T1
   Resampling:  Permuting T1
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0460717{col 27}    174{col 35}   1000{col 43} 0.1740{col 51} 0.0120{col 59} .1509901{col 69}{space 1} .1989469
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. ritest T2 _b[T2],  kdensityplot reps(1000) seed(125) strata(strata): areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}{txt}(running {bf:areg} on estimation sample)

{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:22.84}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0422}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0256}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3885}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0460717{col 33}{space 2} .0294738{col 44}{space 1}   -1.56{col 53}{space 3}0.139{col 61}{space 4}-.1088936{col 74}{space 3} .0167503
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0790366{col 33}{space 2} .0410684{col 44}{space 1}   -1.92{col 53}{space 3}0.073{col 61}{space 4}-.1665717{col 74}{space 3} .0084985
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0006271{col 33}{space 2} .0292228{col 44}{space 1}   -0.02{col 53}{space 3}0.983{col 61}{space 4} -.062914{col 74}{space 3} .0616599
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0331237{col 33}{space 2} .0512491{col 44}{space 1}    0.65{col 53}{space 3}0.528{col 61}{space 4}-.0761111{col 74}{space 3} .1423586
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0206563{col 33}{space 2} .0422137{col 44}{space 1}    0.49{col 53}{space 3}0.632{col 61}{space 4}  -.06932{col 74}{space 3} .1106326
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1136876{col 33}{space 2} .0287725{col 44}{space 1}    3.95{col 53}{space 3}0.001{col 61}{space 4} .0523605{col 74}{space 3} .1750148
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} -.041315{col 33}{space 2} .0369642{col 44}{space 1}   -1.12{col 53}{space 3}0.281{col 61}{space 4}-.1201022{col 74}{space 3} .0374722
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8468408{col 33}{space 2} .0921538{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .6504198{col 74}{space 3} 1.043262
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T2]}{p_end}
  res. var(s):  T2
   Resampling:  Permuting T2
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0790366{col 27}     20{col 35}   1000{col 43} 0.0200{col 51} 0.0044{col 59} .0122583{col 69}{space 1}   .03072
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. ritest T3 _b[T3],  kdensityplot reps(1000) seed(125) strata(strata): areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) 
{res}{txt}(running {bf:areg} on estimation sample)

{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:22.84}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0422}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0256}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.3885}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0460717{col 33}{space 2} .0294738{col 44}{space 1}   -1.56{col 53}{space 3}0.139{col 61}{space 4}-.1088936{col 74}{space 3} .0167503
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0790366{col 33}{space 2} .0410684{col 44}{space 1}   -1.92{col 53}{space 3}0.073{col 61}{space 4}-.1665717{col 74}{space 3} .0084985
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0006271{col 33}{space 2} .0292228{col 44}{space 1}   -0.02{col 53}{space 3}0.983{col 61}{space 4} -.062914{col 74}{space 3} .0616599
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0331237{col 33}{space 2} .0512491{col 44}{space 1}    0.65{col 53}{space 3}0.528{col 61}{space 4}-.0761111{col 74}{space 3} .1423586
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0206563{col 33}{space 2} .0422137{col 44}{space 1}    0.49{col 53}{space 3}0.632{col 61}{space 4}  -.06932{col 74}{space 3} .1106326
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1136876{col 33}{space 2} .0287725{col 44}{space 1}    3.95{col 53}{space 3}0.001{col 61}{space 4} .0523605{col 74}{space 3} .1750148
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} -.041315{col 33}{space 2} .0369642{col 44}{space 1}   -1.12{col 53}{space 3}0.281{col 61}{space 4}-.1201022{col 74}{space 3} .0374722
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8468408{col 33}{space 2} .0921538{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .6504198{col 74}{space 3} 1.043262
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Resampling replications ({res}1,000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000
{res}{p2colset 7 16 20 2}{...}

{txt}{p2col :Command:}{res:areg Vote T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)}{p_end}
{p2colset 9 16 20 2}{...}
{p2col :_pm_1:}{res:_b[T3]}{p_end}
  res. var(s):  T3
   Resampling:  Permuting T3
Clust. var(s){res}:  __000000
     {txt}Clusters{res}:  1022
{txt}Strata var(s){res}:  strata
       {txt}Strata{res}:  7

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{col 1}{text}T           {col 14}{c |}     T(obs){col 27}      c{col 35}      n{col 43}  p=c/n{col 51}  SE(p){col 59}[95% Conf. Interval]
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
{space 7}_pm_1 {c |}{col 14}{result}{space 2}-.0006271{col 27}    983{col 35}   1000{col 43} 0.9830{col 51} 0.0041{col 59} .9729205{col 69}{space 1} .9900665
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 8}{hline 8}{hline 8}{hline 8}{hline 10}{hline 10}
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}
{res}{txt}
{com}. /*log close*/
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix K.1 Direct and Proxy Voting: Full Regression Results for Figure 2*/
. 
. reg vote_directly T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     2.33
                                                {txt}Prob > F          = {res}    0.1155
                                                {txt}R-squared         = {res}    0.0029
                                                {txt}Root MSE          =    {res} .49957

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}vote_direc~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0002161{col 26}{space 2} .0221903{col 37}{space 1}   -0.01{col 46}{space 3}0.992{col 54}{space 4}-.0475136{col 67}{space 3} .0470815
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0611228{col 26}{space 2} .0340713{col 37}{space 1}   -1.79{col 46}{space 3}0.093{col 54}{space 4}-.1337439{col 67}{space 3} .0114984
{txt}{space 10}T3 {c |}{col 14}{res}{space 2} .0048861{col 26}{space 2}  .043169{col 37}{space 1}    0.11{col 46}{space 3}0.911{col 54}{space 4}-.0871265{col 67}{space 3} .0968988
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .480663{col 26}{space 2} .0292904{col 37}{space 1}   16.41{col 46}{space 3}0.000{col 54}{space 4} .4182319{col 67}{space 3}  .543094
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK1", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote Directly==1") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", No) keep(T1 T2 T3) stats(coef pval) noaster replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK1.txt", label"':seeout}

{com}. areg vote_directly T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:4.17}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0097}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0436}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0271}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4924}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      vote_directly{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2} .0012175{col 33}{space 2} .0263053{col 44}{space 1}    0.05{col 53}{space 3}0.964{col 61}{space 4} -.054851{col 74}{space 3}  .057286
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0708333{col 33}{space 2} .0363977{col 44}{space 1}   -1.95{col 53}{space 3}0.071{col 61}{space 4}-.1484132{col 74}{space 3} .0067467
{txt}{space 17}T3 {c |}{col 21}{res}{space 2}-.0016437{col 33}{space 2} .0449585{col 44}{space 1}   -0.04{col 53}{space 3}0.971{col 61}{space 4}-.0974704{col 74}{space 3}  .094183
{txt}{space 13}major1 {c |}{col 21}{res}{space 2}  .012008{col 33}{space 2}  .060295{col 44}{space 1}    0.20{col 53}{space 3}0.845{col 61}{space 4}-.1165078{col 74}{space 3} .1405237
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}-.0271139{col 33}{space 2} .0588554{col 44}{space 1}   -0.46{col 53}{space 3}0.652{col 61}{space 4}-.1525611{col 74}{space 3} .0983333
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2}  .101802{col 33}{space 2} .0409607{col 44}{space 1}    2.49{col 53}{space 3}0.025{col 61}{space 4} .0144963{col 74}{space 3} .1891077
{txt}Questionnaire_order {c |}{col 21}{res}{space 2} .0539876{col 33}{space 2}   .04597{col 44}{space 1}    1.17{col 53}{space 3}0.259{col 61}{space 4}-.0439952{col 74}{space 3} .1519703
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3673586{col 33}{space 2} .0710479{col 44}{space 1}    5.17{col 53}{space 3}0.000{col 61}{space 4} .2159235{col 74}{space 3} .5187937
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixK1", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote Directly==1") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK1.txt", label"':seeout}

{com}. 
. reg vote_proxy T1 T2 T3, cluster(votingdivision2)

{txt}Linear regression                               Number of obs     = {res}       707
                                                {txt}F(3, 15)          =  {res}     1.21
                                                {txt}Prob > F          = {res}    0.3406
                                                {txt}R-squared         = {res}    0.0014
                                                {txt}Root MSE          =    {res} .47549

{txt}{ralign 78:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  vote_proxy{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}T1 {c |}{col 14}{res}{space 2}-.0462669{col 26}{space 2} .0247553{col 37}{space 1}   -1.87{col 46}{space 3}0.081{col 54}{space 4}-.0990316{col 67}{space 3} .0064979
{txt}{space 10}T2 {c |}{col 14}{res}{space 2}-.0142884{col 26}{space 2} .0545087{col 37}{space 1}   -0.26{col 46}{space 3}0.797{col 54}{space 4}-.1304711{col 67}{space 3} .1018942
{txt}{space 10}T3 {c |}{col 14}{res}{space 2}-.0065149{col 26}{space 2} .0509382{col 37}{space 1}   -0.13{col 46}{space 3}0.900{col 54}{space 4}-.1150871{col 67}{space 3} .1020574
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .359116{col 26}{space 2} .0338027{col 37}{space 1}   10.62{col 46}{space 3}0.000{col 54}{space 4} .2870672{col 67}{space 3} .4311649
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK1", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote by Proxy==1") label addtext("Block FE", No, "Major FE", No, "City FE", No, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK1.txt", label"':seeout}

{com}. areg vote_proxy T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata)
{res}
{txt}{col 1}Linear regression, absorbing indicators{col 53}{lalign 17:Number of obs}{col 70} = {res}{ralign 6:706}
{txt}{col 1}Absorbed variable: {res:strata}{col 53}{lalign 17:No. of categories}{col 70} = {res}{ralign 6:6}
{txt}{col 53}{lalign 17:F({res:7}, {res:15})}{col 70} = {res}{ralign 6:3.10}
{txt}{col 53}{lalign 17:Prob > F}{col 70} = {res}{ralign 6:0.0312}
{txt}{col 53}{lalign 17:R-squared}{col 70} = {res}{ralign 6:0.0247}
{txt}{col 53}{lalign 17:Adj R-squared}{col 70} = {res}{ralign 6:0.0078}
{txt}{col 53}{lalign 17:Root MSE}{col 70} = {res}{ralign 6:0.4731}

{txt}{ralign 85:(Std. err. adjusted for {res:16} clusters in {res:votingdivision2})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         vote_proxy{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}T1 {c |}{col 21}{res}{space 2}-.0472892{col 33}{space 2} .0206322{col 44}{space 1}   -2.29{col 53}{space 3}0.037{col 61}{space 4}-.0912657{col 74}{space 3}-.0033127
{txt}{space 17}T2 {c |}{col 21}{res}{space 2}-.0082033{col 33}{space 2} .0522929{col 44}{space 1}   -0.16{col 53}{space 3}0.877{col 61}{space 4} -.119663{col 74}{space 3} .1032563
{txt}{space 17}T3 {c |}{col 21}{res}{space 2} .0010166{col 33}{space 2} .0543185{col 44}{space 1}    0.02{col 53}{space 3}0.985{col 61}{space 4}-.1147604{col 74}{space 3} .1167937
{txt}{space 13}major1 {c |}{col 21}{res}{space 2} .0211158{col 33}{space 2} .0415704{col 44}{space 1}    0.51{col 53}{space 3}0.619{col 61}{space 4}-.0674894{col 74}{space 3} .1097209
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0477702{col 33}{space 2} .0385468{col 44}{space 1}    1.24{col 53}{space 3}0.234{col 61}{space 4}-.0343903{col 74}{space 3} .1299307
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .0118856{col 33}{space 2} .0512637{col 44}{space 1}    0.23{col 53}{space 3}0.820{col 61}{space 4}-.0973802{col 74}{space 3} .1211515
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0953026{col 33}{space 2}  .041322{col 44}{space 1}   -2.31{col 53}{space 3}0.036{col 61}{space 4}-.1833782{col 74}{space 3}-.0072269
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4794822{col 33}{space 2} .0675532{col 44}{space 1}    7.10{col 53}{space 3}0.000{col 61}{space 4} .3354959{col 74}{space 3} .6234685
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "Tables\AppendixK1", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote by Proxy==1") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(T1 T2 T3) stats(coef pval) noaster excel
{txt}{browse `"Tables\AppendixK1.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixK1.txt", label"':seeout}

{com}. 
. /********Wild Bootstrap*****************************/
. /*log using "Tables\TableK1.smcl", replace*/
. wildbootstrap reg vote_directly T1 T2 T3, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 707
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.2
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}           vote_directly{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                  T1 = 0{col 26}{c |}{result}{space 2}-.0002161{col 38}{space 1}  -0.01{col 46}{space 3}0.960{col 54}{space 3} -.050863{col 66}{space 3} .0504837
{col 1}{text}                  T2 = 0{col 26}{c |}{result}{space 2}-.0611228{col 38}{space 1}  -1.79{col 46}{space 3}0.126{col 54}{space 3}-.1396195{col 66}{space 3} .0154912
{col 1}{text}                  T3 = 0{col 26}{c |}{result}{space 2} .0048861{col 38}{space 1}   0.11{col 46}{space 3}0.862{col 54}{space 3}-.0928559{col 66}{space 3} .1021525
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. wildbootstrap areg vote_directly T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) rseed(11062024)

{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:29})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression, absorbing indicators{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}           vote_directly{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                  T1 = 0{col 26}{c |}{result}{space 2} .0012175{col 38}{space 1}   0.05{col 46}{space 3}0.986{col 54}{space 3} -.051032{col 66}{space 3} .0764368
{col 1}{text}                  T2 = 0{col 26}{c |}{result}{space 2}-.0708333{col 38}{space 1}  -1.95{col 46}{space 3}0.088{col 54}{space 3}-.1532888{col 66}{space 3} .0104107
{col 1}{text}                  T3 = 0{col 26}{c |}{result}{space 2}-.0016437{col 38}{space 1}  -0.04{col 46}{space 3}0.982{col 54}{space 3}-.1134682{col 66}{space 3} .0939697
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}  .012008{col 38}{space 1}   0.20{col 46}{space 3}0.830{col 54}{space 3}-.1214597{col 66}{space 3} .1348632
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0271139{col 38}{space 1}  -0.46{col 46}{space 3}0.640{col 54}{space 3}-.1818267{col 66}{space 3} .0942517
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}  .101802{col 38}{space 1}   2.49{col 46}{space 3}0.040{col 54}{space 3} .0078877{col 66}{space 3} .1883404
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .0539876{col 38}{space 1}   1.17{col 46}{space 3}0.336{col 54}{space 3}-.0503902{col 66}{space 3} .1699454
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. wildbootstrap reg vote_proxy T1 T2 T3, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 707
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.2
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}              vote_proxy{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                  T1 = 0{col 26}{c |}{result}{space 2}-.0462669{col 38}{space 1}  -1.87{col 46}{space 3}0.112{col 54}{space 3}-.0984817{col 66}{space 3} .0165787
{col 1}{text}                  T2 = 0{col 26}{c |}{result}{space 2}-.0142884{col 38}{space 1}  -0.26{col 46}{space 3}0.814{col 54}{space 3} -.153132{col 66}{space 3} .1024094
{col 1}{text}                  T3 = 0{col 26}{c |}{result}{space 2}-.0065149{col 38}{space 1}  -0.13{col 46}{space 3}0.870{col 54}{space 3}-.1361688{col 66}{space 3} .0957385
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. wildbootstrap areg vote_proxy T1 T2 T3 major1 major2 HCMC Questionnaire_order, cluster(votingdivision2) absorb(strata) rseed(11062024)

{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:19})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression, absorbing indicators{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}              vote_proxy{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                  T1 = 0{col 26}{c |}{result}{space 2}-.0472892{col 38}{space 1}  -2.29{col 46}{space 3}0.052{col 54}{space 3}-.0929785{col 66}{space 3} .0016095
{col 1}{text}                  T2 = 0{col 26}{c |}{result}{space 2}-.0082033{col 38}{space 1}  -0.16{col 46}{space 3}0.872{col 54}{space 3}-.1450421{col 66}{space 3} .0984975
{col 1}{text}                  T3 = 0{col 26}{c |}{result}{space 2} .0010166{col 38}{space 1}   0.02{col 46}{space 3}0.970{col 54}{space 3} -.135711{col 66}{space 3} .1182254
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0211158{col 38}{space 1}   0.51{col 46}{space 3}0.580{col 54}{space 3}-.0600765{col 66}{space 3} .1091314
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0477702{col 38}{space 1}   1.24{col 46}{space 3}0.264{col 54}{space 3}-.0405053{col 66}{space 3}  .135755
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .0118856{col 38}{space 1}   0.23{col 46}{space 3}0.816{col 54}{space 3}-.1068747{col 66}{space 3} .1370951
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0953026{col 38}{space 1}  -2.31{col 46}{space 3}0.048{col 54}{space 3}-.2149701{col 66}{space 3}-.0012927
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. /*log close*/
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix K2: Full Regression Results for Figure 3*/
. wildbootstrap reg Vote i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text}.{text} done{text} ({result:32})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}                    Vote{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0913933{col 38}{space 1}  -2.23{col 46}{space 3}0.070{col 54}{space 3} -.183953{col 66}{space 3} .0102961
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.0696232{col 38}{space 1}  -1.88{col 46}{space 3}0.096{col 54}{space 3}-.1313369{col 66}{space 3} .0262719
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .2060162{col 38}{space 1}   2.37{col 46}{space 3}0.086{col 54}{space 3}-.0886309{col 66}{space 3} .3804867
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.1080282{col 38}{space 1}  -2.22{col 46}{space 3}0.096{col 54}{space 3}-.2146711{col 66}{space 3} .0114188
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2} .1453597{col 38}{space 1}   2.46{col 46}{space 3}0.054{col 54}{space 3}-.0228384{col 66}{space 3} .2654356
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0120509{col 38}{space 1}  -0.39{col 46}{space 3}0.692{col 54}{space 3}-.0931243{col 66}{space 3} .0574891
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} .0778097{col 38}{space 1}   1.04{col 46}{space 3}0.288{col 54}{space 3}-.0725295{col 66}{space 3} .2665211
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0428766{col 38}{space 1}   0.81{col 46}{space 3}0.452{col 54}{space 3} -.077533{col 66}{space 3} .1731025
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0287071{col 38}{space 1}   0.69{col 46}{space 3}0.510{col 54}{space 3} -.086208{col 66}{space 3}   .11615
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .1105056{col 38}{space 1}   3.98{col 46}{space 3}0.002{col 54}{space 3} .0490272{col 66}{space 3} .1826741
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0448576{col 38}{space 1}  -1.28{col 46}{space 3}0.194{col 54}{space 3}-.1315359{col 66}{space 3} .0276435
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(1.T1  1.polibg  1.T1#1.polibg 1.T2  1.T2#1.polibg 1.T3  1.T3#1.polibg ) stats(coef pval)  noaster  replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. wildbootstrap reg vote_directly i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text} done{text} ({result:31})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}           vote_directly{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0276982{col 38}{space 1}  -0.58{col 46}{space 3}0.580{col 54}{space 3}-.1399117{col 66}{space 3} .0966746
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2} .0953012{col 38}{space 1}   1.61{col 46}{space 3}0.118{col 54}{space 3}-.0167589{col 66}{space 3}  .312444
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .1317979{col 38}{space 1}   0.87{col 46}{space 3}0.484{col 54}{space 3}-.3032192{col 66}{space 3}  .500264
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.0276501{col 38}{space 1}  -0.71{col 46}{space 3}0.494{col 54}{space 3}-.1096564{col 66}{space 3} .0631678
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.1316347{col 38}{space 1}  -1.93{col 46}{space 3}0.018{col 54}{space 3}-.3582074{col 66}{space 3}-.0136098
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0151805{col 38}{space 1}   0.32{col 46}{space 3}0.782{col 54}{space 3}-.1180404{col 66}{space 3} .1129587
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2}-.0308755{col 38}{space 1}  -0.44{col 46}{space 3}0.630{col 54}{space 3}-.1884125{col 66}{space 3} .1519811
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0247849{col 38}{space 1}   0.41{col 46}{space 3}0.702{col 54}{space 3} -.126001{col 66}{space 3} .1575736
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} -.015969{col 38}{space 1}  -0.26{col 46}{space 3}0.830{col 54}{space 3}-.1855459{col 66}{space 3} .0964892
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .0961851{col 38}{space 1}   2.35{col 46}{space 3}0.048{col 54}{space 3} .0017546{col 66}{space 3} .1826567
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .0499547{col 38}{space 1}   1.01{col 46}{space 3}0.416{col 54}{space 3}-.0522313{col 66}{space 3} .1795084
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote Directly") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(1.T1  1.polibg  1.T1#1.polibg 1.T2  1.T2#1.polibg 1.T3  1.T3#1.polibg ) stats(coef pval) noaster  
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. wildbootstrap reg vote_proxy i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text} done{text} ({result:30})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text}.{text} done{text} ({result:31})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:29})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}              vote_proxy{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0636951{col 38}{space 1}  -1.88{col 46}{space 3}0.076{col 54}{space 3}-.1387761{col 66}{space 3} .0086054
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.1649244{col 38}{space 1}  -2.97{col 46}{space 3}0.006{col 54}{space 3}-.3484598{col 66}{space 3}-.0577847
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .0742183{col 38}{space 1}   0.74{col 46}{space 3}0.448{col 54}{space 3}-.1836706{col 66}{space 3} .3004604
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} -.080378{col 38}{space 1}  -1.42{col 46}{space 3}0.204{col 54}{space 3}-.2164047{col 66}{space 3} .0346142
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2} .2769944{col 38}{space 1}   4.30{col 46}{space 3}0.000{col 54}{space 3} .1502229{col 66}{space 3} .4594758
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0272314{col 38}{space 1}  -0.52{col 46}{space 3}0.646{col 54}{space 3}-.1573688{col 66}{space 3} .0952291
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} .1086852{col 38}{space 1}   1.94{col 46}{space 3}0.044{col 54}{space 3} .0092255{col 66}{space 3} .2460042
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0180916{col 38}{space 1}   0.44{col 46}{space 3}0.608{col 54}{space 3}-.0622346{col 66}{space 3} .1127032
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0446761{col 38}{space 1}   1.07{col 46}{space 3}0.324{col 54}{space 3}-.0372919{col 66}{space 3} .1439684
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .0143205{col 38}{space 1}   0.27{col 46}{space 3}0.740{col 54}{space 3}-.1028947{col 66}{space 3} .1338911
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0948123{col 38}{space 1}  -2.19{col 46}{space 3}0.076{col 54}{space 3}-.2061203{col 66}{space 3} .0082565
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote by Proxy") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(1.T1  1.polibg  1.T1#1.polibg 1.T2  1.T2#1.polibg 1.T3  1.T3#1.polibg ) stats(coef pval) noaster
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. wildbootstrap reg Vote i.T1##i.polistat  i.T2##i.polistat  i.T3##i.polistat   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text} done{text} ({result:30})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.35}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.18}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}                    Vote{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.1763328{col 38}{space 1}  -1.40{col 46}{space 3}0.152{col 54}{space 3}-.4693364{col 66}{space 3} .1181126
{col 1}{text}          1.polistat = 0{col 26}{c |}{result}{space 2}  .127353{col 38}{space 1}   1.38{col 46}{space 3}0.220{col 54}{space 3}-.0977068{col 66}{space 3} .3607131
{col 1}{text}     1.T1#1.polistat = 0{col 26}{c |}{result}{space 2} .1435095{col 38}{space 1}   1.06{col 46}{space 3}0.310{col 54}{space 3}-.1458443{col 66}{space 3} .4794448
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .1684494{col 38}{space 1}   1.34{col 46}{space 3}0.208{col 54}{space 3}-.1276778{col 66}{space 3} .4553341
{col 1}{text}     1.T2#1.polistat = 0{col 26}{c |}{result}{space 2}-.2693642{col 38}{space 1}  -2.54{col 46}{space 3}0.016{col 54}{space 3}-.5384595{col 66}{space 3}-.0444191
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0192267{col 38}{space 1}  -0.12{col 46}{space 3}0.902{col 54}{space 3}-.3152379{col 66}{space 3} .3545894
{col 1}{text}     1.T3#1.polistat = 0{col 26}{c |}{result}{space 2} .0230985{col 38}{space 1}   0.14{col 46}{space 3}0.906{col 54}{space 3}-.3164868{col 66}{space 3} .3706968
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0430328{col 38}{space 1}   0.87{col 46}{space 3}0.426{col 54}{space 3} -.069718{col 66}{space 3}  .163641
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0212284{col 38}{space 1}   0.52{col 46}{space 3}0.606{col 54}{space 3}-.0857552{col 66}{space 3} .1080719
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .1139449{col 38}{space 1}   4.36{col 46}{space 3}0.002{col 54}{space 3} .0519771{col 66}{space 3} .1784758
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0391166{col 38}{space 1}  -1.07{col 46}{space 3}0.312{col 54}{space 3}-.1317419{col 66}{space 3} .0431365
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(1.T1  1.polistat  1.T1#1.polistat 1.T2  1.T2#1.polistat 1.T3  1.T3#1.polistat ) stats(coef pval) noaster  
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. wildbootstrap reg vote_directly i.T1##i.polistat  i.T2##i.polistat  i.T3##i.polistat   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:29})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}           vote_directly{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0771731{col 38}{space 1}  -0.67{col 46}{space 3}0.508{col 54}{space 3}-.3956922{col 66}{space 3} .1437746
{col 1}{text}          1.polistat = 0{col 26}{c |}{result}{space 2}  .130126{col 38}{space 1}   1.43{col 46}{space 3}0.224{col 54}{space 3} -.118815{col 66}{space 3} .3556953
{col 1}{text}     1.T1#1.polistat = 0{col 26}{c |}{result}{space 2} .0852532{col 38}{space 1}   0.68{col 46}{space 3}0.486{col 54}{space 3}-.1652438{col 66}{space 3} .4233731
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .3934482{col 38}{space 1}   3.33{col 46}{space 3}0.008{col 54}{space 3} .1477013{col 66}{space 3} .7115231
{col 1}{text}     1.T2#1.polistat = 0{col 26}{c |}{result}{space 2}-.5019525{col 38}{space 1}  -3.73{col 46}{space 3}0.002{col 54}{space 3}-.8711079{col 66}{space 3}-.2126674
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0030141{col 38}{space 1}   0.02{col 46}{space 3}0.974{col 54}{space 3}-.4089056{col 66}{space 3} .4331661
{col 1}{text}     1.T3#1.polistat = 0{col 26}{c |}{result}{space 2} .0044738{col 38}{space 1}   0.02{col 46}{space 3}0.960{col 54}{space 3}-.5142121{col 66}{space 3}  .486442
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0179491{col 38}{space 1}   0.31{col 46}{space 3}0.794{col 54}{space 3}-.1224455{col 66}{space 3} .1411667
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0251488{col 38}{space 1}  -0.42{col 46}{space 3}0.714{col 54}{space 3}-.1959608{col 66}{space 3} .0966752
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}  .087139{col 38}{space 1}   1.98{col 46}{space 3}0.082{col 54}{space 3}-.0125447{col 66}{space 3} .1880511
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .0539851{col 38}{space 1}   1.20{col 46}{space 3}0.334{col 54}{space 3}-.0471184{col 66}{space 3} .1677075
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote Directly") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)   keep(1.T1  1.polistat  1.T1#1.polistat 1.T2  1.T2#1.polistat 1.T3  1.T3#1.polistat ) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. wildbootstrap reg vote_proxy i.T1##i.polistat  i.T2##i.polistat  i.T3##i.polistat   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.33}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}              vote_proxy{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2}-.0991596{col 38}{space 1}  -0.78{col 46}{space 3}0.458{col 54}{space 3} -.374508{col 66}{space 3} .2462185
{col 1}{text}          1.polistat = 0{col 26}{c |}{result}{space 2} -.002773{col 38}{space 1}  -0.04{col 46}{space 3}0.990{col 54}{space 3}-.1472354{col 66}{space 3} .1930132
{col 1}{text}     1.T1#1.polistat = 0{col 26}{c |}{result}{space 2} .0582563{col 38}{space 1}   0.41{col 46}{space 3}0.664{col 54}{space 3}-.3021978{col 66}{space 3} .3869027
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2}-.2249988{col 38}{space 1}  -2.39{col 46}{space 3}0.074{col 54}{space 3}-.3932998{col 66}{space 3} .0640508
{col 1}{text}     1.T2#1.polistat = 0{col 26}{c |}{result}{space 2} .2325883{col 38}{space 1}   2.54{col 46}{space 3}0.038{col 54}{space 3} .0317227{col 66}{space 3} .4358018
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0222408{col 38}{space 1}  -0.16{col 46}{space 3}0.902{col 54}{space 3}-.3170821{col 66}{space 3}  .326075
{col 1}{text}     1.T3#1.polistat = 0{col 26}{c |}{result}{space 2} .0186247{col 38}{space 1}   0.13{col 46}{space 3}0.856{col 54}{space 3}-.3618945{col 66}{space 3} .3275277
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} .0250837{col 38}{space 1}   0.61{col 46}{space 3}0.490{col 54}{space 3}-.0613417{col 66}{space 3} .1277504
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2} .0463772{col 38}{space 1}   1.13{col 46}{space 3}0.292{col 54}{space 3}-.0384212{col 66}{space 3} .1402995
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2} .0268059{col 38}{space 1}   0.49{col 46}{space 3}0.598{col 54}{space 3}-.0952412{col 66}{space 3} .1509382
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}-.0931017{col 38}{space 1}  -2.25{col 46}{space 3}0.064{col 54}{space 3} -.203193{col 66}{space 3} .0064392
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK2", bdec(3) tdec(3) e(rmse N_clust) ctitle("Vote by Proxy") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(1.T1  1.polistat  1.T1#1.polistat 1.T2  1.T2#1.polistat 1.T3  1.T3#1.polistat ) stats(coef pval) noaster excel
{txt}{browse `"Tables\AppendixK2.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixK2.txt", label"':seeout}

{com}. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix K3: Full Regression Results for Figure 4*/
. wildbootstrap reg VNALegitimacy_all i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question,  cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{p 0 6 2}{txt}note: upper-bound CI achieved 1-F({bf:0.19}) = {bf: 0.0240}, but target is 1-F(x) = {bf:.025}.{p_end}
{txt}{p 0 6 2}note: the sorted bootstrap t statistics have at least two tied values adjacent to the t statistic under the null; this prevents the CI bound from converging to the target.{p_end}
{txt}
{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNALegitimacy_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .0952034{col 38}{space 1}   2.34{col 46}{space 3}0.022{col 54}{space 3} .0132666{col 66}{space 3} .1885668
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}  .082914{col 38}{space 1}   1.52{col 46}{space 3}0.114{col 54}{space 3}-.0265105{col 66}{space 3} .2097165
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .0191504{col 38}{space 1}   0.17{col 46}{space 3}0.832{col 54}{space 3}-.3253484{col 66}{space 3} .2230586
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .0464222{col 38}{space 1}   1.20{col 46}{space 3}0.242{col 54}{space 3}-.0345312{col 66}{space 3} .1291995
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.1486404{col 38}{space 1}  -2.02{col 46}{space 3}0.064{col 54}{space 3}-.3464305{col 66}{space 3} .0084363
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .0894427{col 38}{space 1}   1.43{col 46}{space 3}0.198{col 54}{space 3}-.0792247{col 66}{space 3} .2357434
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2} -.155133{col 38}{space 1}  -1.60{col 46}{space 3}0.108{col 54}{space 3}-.3988769{col 66}{space 3} .0357969
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.0039375{col 38}{space 1}  -0.08{col 46}{space 3}0.944{col 54}{space 3}-.1073862{col 66}{space 3} .1015278
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0504968{col 38}{space 1}  -1.00{col 46}{space 3}0.356{col 54}{space 3}-.1628445{col 66}{space 3} .0748695
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}   .00854{col 38}{space 1}   0.30{col 46}{space 3}0.824{col 54}{space 3}-.0536478{col 66}{space 3} .0736611
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .3684478{col 38}{space 1}   7.89{col 46}{space 3}0.000{col 54}{space 3}  .235971{col 66}{space 3} .4669383
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Will Watch VNA=1") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(1.T1  1.polibg  1.T1#1.polibg 1.T2  1.T2#1.polibg 1.T3  1.T3#1.polibg ) stats(coef pval) noaster replace
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK3.txt", label"':seeout}

{com}. wildbootstrap reg VNAConfidence_all i.T1##i.polibg  i.T2##i.polibg  i.T3##i.polibg   major1 major2 HCMC Question,  cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polibg = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polibg}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNAConfidence_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .1862661{col 38}{space 1}   0.85{col 46}{space 3}0.342{col 54}{space 3}  -.22404{col 66}{space 3} .7107279
{col 1}{text}            1.polibg = 0{col 26}{c |}{result}{space 2}-.0813295{col 38}{space 1}  -0.15{col 46}{space 3}0.856{col 54}{space 3}-1.163819{col 66}{space 3} 1.543085
{col 1}{text}       1.T1#1.polibg = 0{col 26}{c |}{result}{space 2} .9403999{col 38}{space 1}   1.02{col 46}{space 3}0.360{col 54}{space 3}-1.411797{col 66}{space 3} 3.073026
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .1540192{col 38}{space 1}   0.71{col 46}{space 3}0.462{col 54}{space 3}-.2714012{col 66}{space 3} .6347461
{col 1}{text}       1.T2#1.polibg = 0{col 26}{c |}{result}{space 2}-.5376799{col 38}{space 1}  -0.81{col 46}{space 3}0.428{col 54}{space 3} -2.21874{col 66}{space 3} .6806429
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2} .4667242{col 38}{space 1}   1.48{col 46}{space 3}0.184{col 54}{space 3} -.433626{col 66}{space 3} 1.181297
{col 1}{text}       1.T3#1.polibg = 0{col 26}{c |}{result}{space 2}-.5653267{col 38}{space 1}  -0.91{col 46}{space 3}0.390{col 54}{space 3}-2.273179{col 66}{space 3} .6657398
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.1002292{col 38}{space 1}  -0.33{col 46}{space 3}0.766{col 54}{space 3}-.8136679{col 66}{space 3} .6591733
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.1955662{col 38}{space 1}  -0.65{col 46}{space 3}0.576{col 54}{space 3}-.9405734{col 66}{space 3} .4531716
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}-.0576238{col 38}{space 1}  -0.43{col 46}{space 3}0.636{col 54}{space 3} -.354773{col 66}{space 3} .2215419
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2}  3.81615{col 38}{space 1}  14.29{col 46}{space 3}0.000{col 54}{space 3} 3.106328{col 66}{space 3} 4.446667
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Confidence in VNA (1-10)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes)  keep(1.T1  1.polibg  1.T1#1.polibg 1.T2  1.T2#1.polibg 1.T3  1.T3#1.polibg ) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK3.txt", label"':seeout}

{com}. wildbootstrap reg VNALegitimacy_all i.T1##i.polistat  i.T2##i.polistat  i.T3##i.polistat   major1 major2 HCMC Question, cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNALegitimacy_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .1538134{col 38}{space 1}   1.40{col 46}{space 3}0.144{col 54}{space 3} -.047416{col 66}{space 3} .4493157
{col 1}{text}          1.polistat = 0{col 26}{c |}{result}{space 2} .0330404{col 38}{space 1}   0.42{col 46}{space 3}0.734{col 54}{space 3}-.1117896{col 66}{space 3} .2498835
{col 1}{text}     1.T1#1.polistat = 0{col 26}{c |}{result}{space 2}-.0616206{col 38}{space 1}  -0.56{col 46}{space 3}0.552{col 54}{space 3}-.3375123{col 66}{space 3} .1482209
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} .4144578{col 38}{space 1}   5.58{col 46}{space 3}0.002{col 54}{space 3} .2442737{col 66}{space 3} .5698667
{col 1}{text}     1.T2#1.polistat = 0{col 26}{c |}{result}{space 2}-.4434674{col 38}{space 1}  -5.76{col 46}{space 3}0.002{col 54}{space 3}-.6160698{col 66}{space 3}-.2779658
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0051135{col 38}{space 1}  -0.04{col 46}{space 3}0.962{col 54}{space 3}-.2859891{col 66}{space 3} .2776583
{col 1}{text}     1.T3#1.polistat = 0{col 26}{c |}{result}{space 2} .0585023{col 38}{space 1}   0.44{col 46}{space 3}0.670{col 54}{space 3}-.2917419{col 66}{space 3} .3406478
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2}-.0120288{col 38}{space 1}  -0.26{col 46}{space 3}0.796{col 54}{space 3} -.107509{col 66}{space 3} .0862568
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.0522007{col 38}{space 1}  -1.10{col 46}{space 3}0.336{col 54}{space 3}-.1572978{col 66}{space 3} .0649845
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}-.0041696{col 38}{space 1}  -0.14{col 46}{space 3}0.864{col 54}{space 3}-.0647603{col 66}{space 3}  .059001
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} .3711088{col 38}{space 1}   8.85{col 46}{space 3}0.000{col 54}{space 3} .2500225{col 66}{space 3} .4593225
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Will Watch VNA=1") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(1.T1  1.polistat  1.T1#1.polistat 1.T2  1.T2#1.polistat 1.T3  1.T3#1.polistat ) stats(coef pval) noaster 
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir} : {txt}{stata `"seeout using "Tables\AppendixK3.txt", label"':seeout}

{com}. wildbootstrap reg VNAConfidence_all i.T1##i.polistat  i.T2##i.polistat  i.T3##i.polistat   major1 major2 HCMC Question,  cluster(votingdivision2) rseed(11062024)
{res}
{txt}{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:28})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}30{text} done{text} ({result:30})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T1#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T1#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T2#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T2#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text} done{text} ({result:20})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:1.T3#1.polistat = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:1.T3#1.polistat}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:26})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text} done{text} ({result:24})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major1 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major1}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text} done{text} ({result:22})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:major2 = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:major2}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text} done{text} ({result:23})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:HCMC = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:HCMC}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text} done{text} ({result:21})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:25})

{p}Performing {res}    1,000{txt} replications for p-value for {bf:Questionnaire_order = 0} {txt}...{p_end}
{res}{txt}Computing confidence interval for {bf:Questionnaire_order}
{text}  Lower bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{text}  Upper bound{text}: {text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}10{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text}20{text}.{text}.{text}.{text}.{text}.{text}.{text}.{text} done{text} ({result:27})
{res}
{txt}Wild cluster bootstrap{col 53}{txt}Number of obs{col 71} = {res} 706
{txt}Linear regression{col 53}{txt}Number of clusters{col 71} = {res}  16
{col 53}{txt}Cluster size:
{txt}Cluster variable: {res:votingdivision2}{col 68}{txt}min{col 71} = {res}  11
{txt}Error weight: Rademacher{col 68}{txt}avg{col 71} = {res}44.1
{col 68}{txt}max{col 71} = {res} 124
{col 1}{text}{hline 25}{c TT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}       VNAConfidence_all{col 26}{c |}   Estimate{col 38}      t{col 46} p-value{col 54}    [95% conf. interval]
{res}{col 1}{text}{hline 25}{c +}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{col 1}{text}constraints             {col 26}{c |}
{res}{col 1}{text}                1.T1 = 0{col 26}{c |}{result}{space 2} .9784627{col 38}{space 1}   2.63{col 46}{space 3}0.044{col 54}{space 3} .0607519{col 66}{space 3}  1.66437
{col 1}{text}          1.polistat = 0{col 26}{c |}{result}{space 2} .6812039{col 38}{space 1}   1.46{col 46}{space 3}0.250{col 54}{space 3}-.4357609{col 66}{space 3} 1.863113
{col 1}{text}     1.T1#1.polistat = 0{col 26}{c |}{result}{space 2}-.6683981{col 38}{space 1}  -1.40{col 46}{space 3}0.190{col 54}{space 3}-1.666171{col 66}{space 3} .5830094
{col 1}{text}                1.T2 = 0{col 26}{c |}{result}{space 2} 2.056616{col 38}{space 1}   3.56{col 46}{space 3}0.030{col 54}{space 3} .3927137{col 66}{space 3} 3.230603
{col 1}{text}     1.T2#1.polistat = 0{col 26}{c |}{result}{space 2}-2.283225{col 38}{space 1}  -3.46{col 46}{space 3}0.024{col 54}{space 3}-3.965725{col 66}{space 3}-.5685663
{col 1}{text}                1.T3 = 0{col 26}{c |}{result}{space 2}-.0369325{col 38}{space 1}  -0.06{col 46}{space 3}0.976{col 54}{space 3}-1.556971{col 66}{space 3}   1.5144
{col 1}{text}     1.T3#1.polistat = 0{col 26}{c |}{result}{space 2}  .339695{col 38}{space 1}   0.45{col 46}{space 3}0.614{col 54}{space 3}-1.491569{col 66}{space 3} 1.859215
{col 1}{text}              major1 = 0{col 26}{c |}{result}{space 2} -.134267{col 38}{space 1}  -0.45{col 46}{space 3}0.660{col 54}{space 3}-.8100772{col 66}{space 3} .6448983
{col 1}{text}              major2 = 0{col 26}{c |}{result}{space 2}-.2203769{col 38}{space 1}  -0.82{col 46}{space 3}0.464{col 54}{space 3}-.8699068{col 66}{space 3} .3751352
{col 1}{text}                HCMC = 0{col 26}{c |}{result}{space 2}-.0787431{col 38}{space 1}  -0.56{col 46}{space 3}0.536{col 54}{space 3}-.3628181{col 66}{space 3} .2136126
{col 1}{text} Questionnaire_order = 0{col 26}{c |}{result}{space 2} 3.875893{col 38}{space 1}  15.87{col 46}{space 3}0.000{col 54}{space 3} 3.211296{col 66}{space 3} 4.407811
{col 1}{text}{hline 25}{c BT}{hline 11}{hline 8}{hline 8}{hline 12}{hline 12}
{res}{txt}
{com}. outreg2 using "Tables\AppendixK3", bdec(3) tdec(3) e(rmse N_clust) ctitle("Confidence in VNA (1-10)") label addtext("Block FE", Yes, "Major FE", Yes, "City FE", Yes, "Questionnaire_order", Yes) keep(1.T1  1.polistat  1.T1#1.polistat 1.T2  1.T2#1.polistat 1.T3  1.T3#1.polistat ) stats(coef pval) noaster excel
{txt}{browse `"Tables\AppendixK3.xml"'}
{browse `"C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication"' :dir}{com} : {txt}{stata `"seeout using "Tables\AppendixK3.txt", label"':seeout}

{com}. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix L.1 Effects of Having an Under-40 Candidate on Ballot*/
. /*Age below 40*/
. generate age40_dich=0
{txt}
{com}. replace age40_dich=1 if AgeOver40<5 & AgeOver40 !=.
{txt}(348 real changes made)

{com}. lab var age40_dich "Age Below 40=1"
{txt}
{com}. label define age40_dich 1 "Yes" 0 "No", replace
{txt}
{com}. label val age40_dich age40_dich
{txt}
{com}. 
. /*Interaction*/
. reg Vote i.T1##i.age40_dich  i.T2##i.age40_dich  i.T3##i.age40_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     1.93
                                                {txt}Prob > F          = {res}    0.0328
                                                {txt}R-squared         = {res}    0.0276
                                                {txt}Root MSE          =    {res} .39112

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0084615{col 33}{space 2} .0602119{col 44}{space 1}   -0.14{col 53}{space 3}0.888{col 61}{space 4}-.1266808{col 74}{space 3} .1097577
{txt}{space 19} {c |}
{space 9}age40_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0527543{col 33}{space 2}   .05577{col 44}{space 1}    0.95{col 53}{space 3}0.345{col 61}{space 4}-.0567439{col 74}{space 3} .1622525
{txt}{space 19} {c |}
{space 6}T1#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.064249{col 33}{space 2} .0820507{col 44}{space 1}   -0.78{col 53}{space 3}0.434{col 61}{space 4}-.2253464{col 74}{space 3} .0968483
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0274828{col 33}{space 2} .0614417{col 44}{space 1}   -0.45{col 53}{space 3}0.655{col 61}{space 4}-.1481167{col 74}{space 3}  .093151
{txt}{space 19} {c |}
{space 6}T2#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.083311{col 33}{space 2} .0852613{col 44}{space 1}   -0.98{col 53}{space 3}0.329{col 61}{space 4} -.250712{col 74}{space 3}   .08409
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0394134{col 33}{space 2} .0592606{col 44}{space 1}    0.67{col 53}{space 3}0.506{col 61}{space 4}-.0769382{col 74}{space 3}  .155765
{txt}{space 19} {c |}
{space 6}T3#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0597241{col 33}{space 2} .0797013{col 44}{space 1}   -0.75{col 53}{space 3}0.454{col 61}{space 4}-.2162087{col 74}{space 3} .0967605
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0373145{col 33}{space 2} .0418964{col 44}{space 1}    0.89{col 53}{space 3}0.373{col 61}{space 4}-.0449444{col 74}{space 3} .1195734
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0218042{col 33}{space 2} .0367969{col 44}{space 1}    0.59{col 53}{space 3}0.554{col 61}{space 4}-.0504424{col 74}{space 3} .0940507
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2}  .105035{col 33}{space 2} .0289501{col 44}{space 1}    3.63{col 53}{space 3}0.000{col 61}{space 4} .0481948{col 74}{space 3} .1618752
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0461583{col 33}{space 2} .0297864{col 44}{space 1}   -1.55{col 53}{space 3}0.122{col 61}{space 4}-.1046406{col 74}{space 3}  .012324
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .822133{col 33}{space 2} .0738873{col 44}{space 1}   11.13{col 53}{space 3}0.000{col 61}{space 4} .6770635{col 74}{space 3} .9672025
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(age40_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:age40_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1         {txt}{c |}
{space 2}age40_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0084615{col 26}{space 2} .0602119{col 37}{space 1}   -0.14{col 46}{space 3}0.888{col 54}{space 4}-.1266808{col 67}{space 3} .1097577
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0727106{col 26}{space 2} .0558839{col 37}{space 1}   -1.30{col 46}{space 3}0.194{col 54}{space 4}-.1824324{col 67}{space 3} .0370113
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:age40_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. reg Vote i.T1##i.age40_dich  i.T2##i.age40_dich  i.T3##i.age40_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     1.93
                                                {txt}Prob > F          = {res}    0.0328
                                                {txt}R-squared         = {res}    0.0276
                                                {txt}Root MSE          =    {res} .39112

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0084615{col 33}{space 2} .0602119{col 44}{space 1}   -0.14{col 53}{space 3}0.888{col 61}{space 4}-.1266808{col 74}{space 3} .1097577
{txt}{space 19} {c |}
{space 9}age40_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0527543{col 33}{space 2}   .05577{col 44}{space 1}    0.95{col 53}{space 3}0.345{col 61}{space 4}-.0567439{col 74}{space 3} .1622525
{txt}{space 19} {c |}
{space 6}T1#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.064249{col 33}{space 2} .0820507{col 44}{space 1}   -0.78{col 53}{space 3}0.434{col 61}{space 4}-.2253464{col 74}{space 3} .0968483
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0274828{col 33}{space 2} .0614417{col 44}{space 1}   -0.45{col 53}{space 3}0.655{col 61}{space 4}-.1481167{col 74}{space 3}  .093151
{txt}{space 19} {c |}
{space 6}T2#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.083311{col 33}{space 2} .0852613{col 44}{space 1}   -0.98{col 53}{space 3}0.329{col 61}{space 4} -.250712{col 74}{space 3}   .08409
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0394134{col 33}{space 2} .0592606{col 44}{space 1}    0.67{col 53}{space 3}0.506{col 61}{space 4}-.0769382{col 74}{space 3}  .155765
{txt}{space 19} {c |}
{space 6}T3#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0597241{col 33}{space 2} .0797013{col 44}{space 1}   -0.75{col 53}{space 3}0.454{col 61}{space 4}-.2162087{col 74}{space 3} .0967605
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0373145{col 33}{space 2} .0418964{col 44}{space 1}    0.89{col 53}{space 3}0.373{col 61}{space 4}-.0449444{col 74}{space 3} .1195734
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0218042{col 33}{space 2} .0367969{col 44}{space 1}    0.59{col 53}{space 3}0.554{col 61}{space 4}-.0504424{col 74}{space 3} .0940507
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2}  .105035{col 33}{space 2} .0289501{col 44}{space 1}    3.63{col 53}{space 3}0.000{col 61}{space 4} .0481948{col 74}{space 3} .1618752
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0461583{col 33}{space 2} .0297864{col 44}{space 1}   -1.55{col 53}{space 3}0.122{col 61}{space 4}-.1046406{col 74}{space 3}  .012324
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .822133{col 33}{space 2} .0738873{col 44}{space 1}   11.13{col 53}{space 3}0.000{col 61}{space 4} .6770635{col 74}{space 3} .9672025
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(age40_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:age40_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2         {txt}{c |}
{space 2}age40_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0274828{col 26}{space 2} .0614417{col 37}{space 1}   -0.45{col 46}{space 3}0.655{col 54}{space 4}-.1481167{col 67}{space 3}  .093151
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.1107938{col 26}{space 2} .0592766{col 37}{space 1}   -1.87{col 46}{space 3}0.062{col 54}{space 4}-.2271768{col 67}{space 3} .0055892
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Quality", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:age40_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. reg Vote i.T1##i.age40_dich  i.T2##i.age40_dich  i.T3##i.age40_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     1.93
                                                {txt}Prob > F          = {res}    0.0328
                                                {txt}R-squared         = {res}    0.0276
                                                {txt}Root MSE          =    {res} .39112

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0084615{col 33}{space 2} .0602119{col 44}{space 1}   -0.14{col 53}{space 3}0.888{col 61}{space 4}-.1266808{col 74}{space 3} .1097577
{txt}{space 19} {c |}
{space 9}age40_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0527543{col 33}{space 2}   .05577{col 44}{space 1}    0.95{col 53}{space 3}0.345{col 61}{space 4}-.0567439{col 74}{space 3} .1622525
{txt}{space 19} {c |}
{space 6}T1#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.064249{col 33}{space 2} .0820507{col 44}{space 1}   -0.78{col 53}{space 3}0.434{col 61}{space 4}-.2253464{col 74}{space 3} .0968483
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0274828{col 33}{space 2} .0614417{col 44}{space 1}   -0.45{col 53}{space 3}0.655{col 61}{space 4}-.1481167{col 74}{space 3}  .093151
{txt}{space 19} {c |}
{space 6}T2#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.083311{col 33}{space 2} .0852613{col 44}{space 1}   -0.98{col 53}{space 3}0.329{col 61}{space 4} -.250712{col 74}{space 3}   .08409
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0394134{col 33}{space 2} .0592606{col 44}{space 1}    0.67{col 53}{space 3}0.506{col 61}{space 4}-.0769382{col 74}{space 3}  .155765
{txt}{space 19} {c |}
{space 6}T3#age40_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0597241{col 33}{space 2} .0797013{col 44}{space 1}   -0.75{col 53}{space 3}0.454{col 61}{space 4}-.2162087{col 74}{space 3} .0967605
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0373145{col 33}{space 2} .0418964{col 44}{space 1}    0.89{col 53}{space 3}0.373{col 61}{space 4}-.0449444{col 74}{space 3} .1195734
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0218042{col 33}{space 2} .0367969{col 44}{space 1}    0.59{col 53}{space 3}0.554{col 61}{space 4}-.0504424{col 74}{space 3} .0940507
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2}  .105035{col 33}{space 2} .0289501{col 44}{space 1}    3.63{col 53}{space 3}0.000{col 61}{space 4} .0481948{col 74}{space 3} .1618752
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0461583{col 33}{space 2} .0297864{col 44}{space 1}   -1.55{col 53}{space 3}0.122{col 61}{space 4}-.1046406{col 74}{space 3}  .012324
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .822133{col 33}{space 2} .0738873{col 44}{space 1}   11.13{col 53}{space 3}0.000{col 61}{space 4} .6770635{col 74}{space 3} .9672025
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(age40_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:age40_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3         {txt}{c |}
{space 2}age40_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .0394134{col 26}{space 2} .0592606{col 37}{space 1}    0.67{col 46}{space 3}0.506{col 54}{space 4}-.0769382{col 67}{space 3}  .155765
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0203107{col 26}{space 2} .0533349{col 37}{space 1}   -0.38{col 46}{space 3}0.703{col 54}{space 4}-.1250279{col 67}{space 3} .0844065
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Policy Objectives", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:age40_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Young Candidates", size(medium) position(6)) subtitle("Conditional Average Treatment Effects", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\AppendixL1.gph", replace
{res}{txt}file {bf:Figures\AppendixL1.gph} saved

{com}. graph export "Figures\AppendixL1.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixL1.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix L2 Effects of Having Woman Candidate on Ballot*/
. /*Female Candidates on Ballot*/
. generate female_dich=Female
{txt}(315 missing values generated)

{com}. replace female_dich=1 if Female>0 & Female !=.
{txt}(391 real changes made)

{com}. lab var female_dich "Female Candidate on Ballot=1"
{txt}
{com}. label define female_dich 1 "Yes" 0 "No",replace
{txt}
{com}. label val female_dich female_dich
{txt}
{com}. 
. /*Interaction*/
. reg Vote i.T1##i.female_dich  i.T2##i.female_dich  i.T3##i.female_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.62
                                                {txt}Prob > F          = {res}    0.0027
                                                {txt}R-squared         = {res}    0.0350
                                                {txt}Root MSE          =    {res} .38964

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2} .0443895{col 33}{space 2}  .070859{col 44}{space 1}    0.63{col 53}{space 3}0.531{col 61}{space 4}-.0947342{col 74}{space 3} .1835132
{txt}{space 19} {c |}
{space 8}female_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0644364{col 33}{space 2} .0604216{col 44}{space 1}    1.07{col 53}{space 3}0.287{col 61}{space 4}-.0541946{col 74}{space 3} .1830674
{txt}{space 19} {c |}
{space 5}T1#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.133992{col 33}{space 2} .0862242{col 44}{space 1}   -1.55{col 53}{space 3}0.121{col 61}{space 4}-.3032836{col 74}{space 3} .0352997
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0213612{col 33}{space 2} .0722213{col 44}{space 1}   -0.30{col 53}{space 3}0.767{col 61}{space 4}-.1631596{col 74}{space 3} .1204372
{txt}{space 19} {c |}
{space 5}T2#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0773438{col 33}{space 2} .0889809{col 44}{space 1}   -0.87{col 53}{space 3}0.385{col 61}{space 4}-.2520478{col 74}{space 3} .0973601
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .1280875{col 33}{space 2} .0645103{col 44}{space 1}    1.99{col 53}{space 3}0.047{col 61}{space 4} .0014287{col 74}{space 3} .2547462
{txt}{space 19} {c |}
{space 5}T3#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.1890935{col 33}{space 2}   .08104{col 44}{space 1}   -2.33{col 53}{space 3}0.020{col 61}{space 4}-.3482064{col 74}{space 3}-.0299806
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0356023{col 33}{space 2} .0413539{col 44}{space 1}    0.86{col 53}{space 3}0.390{col 61}{space 4}-.0455916{col 74}{space 3} .1167961
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .024029{col 33}{space 2} .0369511{col 44}{space 1}    0.65{col 53}{space 3}0.516{col 61}{space 4}-.0485203{col 74}{space 3} .0965783
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1137481{col 33}{space 2} .0297647{col 44}{space 1}    3.82{col 53}{space 3}0.000{col 61}{space 4} .0553084{col 74}{space 3} .1721877
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0497194{col 33}{space 2} .0295009{col 44}{space 1}   -1.69{col 53}{space 3}0.092{col 61}{space 4} -.107641{col 74}{space 3} .0082022
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8117562{col 33}{space 2} .0762273{col 44}{space 1}   10.65{col 53}{space 3}0.000{col 61}{space 4} .6620925{col 74}{space 3} .9614199
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(female_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:female_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1         {txt}{c |}
{space 1}female_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .0443895{col 26}{space 2}  .070859{col 37}{space 1}    0.63{col 46}{space 3}0.531{col 54}{space 4}-.0947342{col 67}{space 3} .1835132
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0896025{col 26}{space 2} .0491983{col 37}{space 1}   -1.82{col 46}{space 3}0.069{col 54}{space 4}-.1861979{col 67}{space 3}  .006993
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:female_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. reg Vote i.T1##i.female_dich  i.T2##i.female_dich  i.T3##i.female_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.62
                                                {txt}Prob > F          = {res}    0.0027
                                                {txt}R-squared         = {res}    0.0350
                                                {txt}Root MSE          =    {res} .38964

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2} .0443895{col 33}{space 2}  .070859{col 44}{space 1}    0.63{col 53}{space 3}0.531{col 61}{space 4}-.0947342{col 74}{space 3} .1835132
{txt}{space 19} {c |}
{space 8}female_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0644364{col 33}{space 2} .0604216{col 44}{space 1}    1.07{col 53}{space 3}0.287{col 61}{space 4}-.0541946{col 74}{space 3} .1830674
{txt}{space 19} {c |}
{space 5}T1#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.133992{col 33}{space 2} .0862242{col 44}{space 1}   -1.55{col 53}{space 3}0.121{col 61}{space 4}-.3032836{col 74}{space 3} .0352997
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0213612{col 33}{space 2} .0722213{col 44}{space 1}   -0.30{col 53}{space 3}0.767{col 61}{space 4}-.1631596{col 74}{space 3} .1204372
{txt}{space 19} {c |}
{space 5}T2#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0773438{col 33}{space 2} .0889809{col 44}{space 1}   -0.87{col 53}{space 3}0.385{col 61}{space 4}-.2520478{col 74}{space 3} .0973601
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .1280875{col 33}{space 2} .0645103{col 44}{space 1}    1.99{col 53}{space 3}0.047{col 61}{space 4} .0014287{col 74}{space 3} .2547462
{txt}{space 19} {c |}
{space 5}T3#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.1890935{col 33}{space 2}   .08104{col 44}{space 1}   -2.33{col 53}{space 3}0.020{col 61}{space 4}-.3482064{col 74}{space 3}-.0299806
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0356023{col 33}{space 2} .0413539{col 44}{space 1}    0.86{col 53}{space 3}0.390{col 61}{space 4}-.0455916{col 74}{space 3} .1167961
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .024029{col 33}{space 2} .0369511{col 44}{space 1}    0.65{col 53}{space 3}0.516{col 61}{space 4}-.0485203{col 74}{space 3} .0965783
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1137481{col 33}{space 2} .0297647{col 44}{space 1}    3.82{col 53}{space 3}0.000{col 61}{space 4} .0553084{col 74}{space 3} .1721877
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0497194{col 33}{space 2} .0295009{col 44}{space 1}   -1.69{col 53}{space 3}0.092{col 61}{space 4} -.107641{col 74}{space 3} .0082022
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8117562{col 33}{space 2} .0762273{col 44}{space 1}   10.65{col 53}{space 3}0.000{col 61}{space 4} .6620925{col 74}{space 3} .9614199
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(female_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:female_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2         {txt}{c |}
{space 1}female_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0213612{col 26}{space 2} .0722213{col 37}{space 1}   -0.30{col 46}{space 3}0.767{col 54}{space 4}-.1631596{col 67}{space 3} .1204372
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} -.098705{col 26}{space 2} .0520951{col 37}{space 1}   -1.89{col 46}{space 3}0.059{col 54}{space 4}-.2009878{col 67}{space 3} .0035778
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Quality", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:female_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. reg Vote i.T1##i.female_dich  i.T2##i.female_dich  i.T3##i.female_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.62
                                                {txt}Prob > F          = {res}    0.0027
                                                {txt}R-squared         = {res}    0.0350
                                                {txt}Root MSE          =    {res} .38964

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2} .0443895{col 33}{space 2}  .070859{col 44}{space 1}    0.63{col 53}{space 3}0.531{col 61}{space 4}-.0947342{col 74}{space 3} .1835132
{txt}{space 19} {c |}
{space 8}female_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0644364{col 33}{space 2} .0604216{col 44}{space 1}    1.07{col 53}{space 3}0.287{col 61}{space 4}-.0541946{col 74}{space 3} .1830674
{txt}{space 19} {c |}
{space 5}T1#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.133992{col 33}{space 2} .0862242{col 44}{space 1}   -1.55{col 53}{space 3}0.121{col 61}{space 4}-.3032836{col 74}{space 3} .0352997
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0213612{col 33}{space 2} .0722213{col 44}{space 1}   -0.30{col 53}{space 3}0.767{col 61}{space 4}-.1631596{col 74}{space 3} .1204372
{txt}{space 19} {c |}
{space 5}T2#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0773438{col 33}{space 2} .0889809{col 44}{space 1}   -0.87{col 53}{space 3}0.385{col 61}{space 4}-.2520478{col 74}{space 3} .0973601
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .1280875{col 33}{space 2} .0645103{col 44}{space 1}    1.99{col 53}{space 3}0.047{col 61}{space 4} .0014287{col 74}{space 3} .2547462
{txt}{space 19} {c |}
{space 5}T3#female_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.1890935{col 33}{space 2}   .08104{col 44}{space 1}   -2.33{col 53}{space 3}0.020{col 61}{space 4}-.3482064{col 74}{space 3}-.0299806
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0356023{col 33}{space 2} .0413539{col 44}{space 1}    0.86{col 53}{space 3}0.390{col 61}{space 4}-.0455916{col 74}{space 3} .1167961
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .024029{col 33}{space 2} .0369511{col 44}{space 1}    0.65{col 53}{space 3}0.516{col 61}{space 4}-.0485203{col 74}{space 3} .0965783
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1137481{col 33}{space 2} .0297647{col 44}{space 1}    3.82{col 53}{space 3}0.000{col 61}{space 4} .0553084{col 74}{space 3} .1721877
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0497194{col 33}{space 2} .0295009{col 44}{space 1}   -1.69{col 53}{space 3}0.092{col 61}{space 4} -.107641{col 74}{space 3} .0082022
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8117562{col 33}{space 2} .0762273{col 44}{space 1}   10.65{col 53}{space 3}0.000{col 61}{space 4} .6620925{col 74}{space 3} .9614199
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(female_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:female_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3         {txt}{c |}
{space 1}female_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2} .1280875{col 26}{space 2} .0645103{col 37}{space 1}    1.99{col 46}{space 3}0.047{col 54}{space 4} .0014287{col 67}{space 3} .2547462
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} -.061006{col 26}{space 2}  .049353{col 37}{space 1}   -1.24{col 46}{space 3}0.217{col 54}{space 4}-.1579052{col 67}{space 3} .0358931
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Policy Objectives", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:female_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Women Candidates", size(medium) position(6)) subtitle("Conditional Average Treatment Effects", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\AppendixL2.gph", replace
{res}{txt}file {bf:Figures\AppendixL2.gph} saved

{com}. graph export "Figures\AppendixL2.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixL2.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix L3 Effects of Having Woman Candidate on Ballot*/
. /*Non-Party*/
. generate VCP_dich=0
{txt}
{com}. replace VCP_dich=1 if VCPMember<5 & VCPMember !=.
{txt}(313 real changes made)

{com}. lab var VCP_dich "NonVCP member=1"
{txt}
{com}. label define VCP_dich 1 "Yes" 0 "No",replace
{txt}
{com}. label val VCP_dich VCP_dich
{txt}
{com}. 
. /*Interaction*/
. reg Vote i.T1##i.VCP_dich  i.T2##i.VCP_dich  i.T3##i.VCP_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.61
                                                {txt}Prob > F          = {res}    0.0029
                                                {txt}R-squared         = {res}    0.0343
                                                {txt}Root MSE          =    {res} .38978

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0534957{col 33}{space 2} .0521226{col 44}{space 1}   -1.03{col 53}{space 3}0.305{col 61}{space 4}-.1558325{col 74}{space 3} .0488411
{txt}{space 19} {c |}
{space 11}VCP_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0168141{col 33}{space 2} .0554607{col 44}{space 1}   -0.30{col 53}{space 3}0.762{col 61}{space 4} -.125705{col 74}{space 3} .0920769
{txt}{space 19} {c |}
{space 8}T1#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}  .023238{col 33}{space 2} .0831001{col 44}{space 1}    0.28{col 53}{space 3}0.780{col 61}{space 4}-.1399197{col 74}{space 3} .1863957
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0620699{col 33}{space 2} .0560338{col 44}{space 1}   -1.11{col 53}{space 3}0.268{col 61}{space 4}-.1720859{col 74}{space 3} .0479461
{txt}{space 19} {c |}
{space 8}T2#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0163988{col 33}{space 2} .0846189{col 44}{space 1}   -0.19{col 53}{space 3}0.846{col 61}{space 4}-.1825385{col 74}{space 3} .1497408
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2}-.0628729{col 33}{space 2} .0547913{col 44}{space 1}   -1.15{col 53}{space 3}0.252{col 61}{space 4}-.1704495{col 74}{space 3} .0447036
{txt}{space 19} {c |}
{space 8}T3#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} .1572697{col 33}{space 2} .0770783{col 44}{space 1}    2.04{col 53}{space 3}0.042{col 61}{space 4} .0059351{col 74}{space 3} .3086043
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0372566{col 33}{space 2} .0413151{col 44}{space 1}    0.90{col 53}{space 3}0.367{col 61}{space 4} -.043861{col 74}{space 3} .1183741
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .018957{col 33}{space 2} .0371295{col 44}{space 1}    0.51{col 53}{space 3}0.610{col 61}{space 4}-.0539425{col 74}{space 3} .0918566
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1089297{col 33}{space 2} .0292962{col 44}{space 1}    3.72{col 53}{space 3}0.000{col 61}{space 4}   .05141{col 74}{space 3} .1664495
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0470344{col 33}{space 2}  .029555{col 44}{space 1}   -1.59{col 53}{space 3}0.112{col 61}{space 4}-.1050622{col 74}{space 3} .0109935
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8608691{col 33}{space 2} .0681509{col 44}{space 1}   12.63{col 53}{space 3}0.000{col 61}{space 4} .7270624{col 74}{space 3} .9946758
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(VCP_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:VCP_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1         {txt}{c |}
{space 4}VCP_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0534957{col 26}{space 2} .0521226{col 37}{space 1}   -1.03{col 46}{space 3}0.305{col 54}{space 4}-.1558325{col 67}{space 3} .0488411
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0302577{col 26}{space 2} .0647695{col 37}{space 1}   -0.47{col 46}{space 3}0.641{col 54}{space 4}-.1574254{col 67}{space 3}   .09691
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:VCP_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. reg Vote i.T1##i.VCP_dich  i.T2##i.VCP_dich  i.T3##i.VCP_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.61
                                                {txt}Prob > F          = {res}    0.0029
                                                {txt}R-squared         = {res}    0.0343
                                                {txt}Root MSE          =    {res} .38978

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0534957{col 33}{space 2} .0521226{col 44}{space 1}   -1.03{col 53}{space 3}0.305{col 61}{space 4}-.1558325{col 74}{space 3} .0488411
{txt}{space 19} {c |}
{space 11}VCP_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0168141{col 33}{space 2} .0554607{col 44}{space 1}   -0.30{col 53}{space 3}0.762{col 61}{space 4} -.125705{col 74}{space 3} .0920769
{txt}{space 19} {c |}
{space 8}T1#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}  .023238{col 33}{space 2} .0831001{col 44}{space 1}    0.28{col 53}{space 3}0.780{col 61}{space 4}-.1399197{col 74}{space 3} .1863957
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0620699{col 33}{space 2} .0560338{col 44}{space 1}   -1.11{col 53}{space 3}0.268{col 61}{space 4}-.1720859{col 74}{space 3} .0479461
{txt}{space 19} {c |}
{space 8}T2#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0163988{col 33}{space 2} .0846189{col 44}{space 1}   -0.19{col 53}{space 3}0.846{col 61}{space 4}-.1825385{col 74}{space 3} .1497408
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2}-.0628729{col 33}{space 2} .0547913{col 44}{space 1}   -1.15{col 53}{space 3}0.252{col 61}{space 4}-.1704495{col 74}{space 3} .0447036
{txt}{space 19} {c |}
{space 8}T3#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} .1572697{col 33}{space 2} .0770783{col 44}{space 1}    2.04{col 53}{space 3}0.042{col 61}{space 4} .0059351{col 74}{space 3} .3086043
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0372566{col 33}{space 2} .0413151{col 44}{space 1}    0.90{col 53}{space 3}0.367{col 61}{space 4} -.043861{col 74}{space 3} .1183741
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .018957{col 33}{space 2} .0371295{col 44}{space 1}    0.51{col 53}{space 3}0.610{col 61}{space 4}-.0539425{col 74}{space 3} .0918566
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1089297{col 33}{space 2} .0292962{col 44}{space 1}    3.72{col 53}{space 3}0.000{col 61}{space 4}   .05141{col 74}{space 3} .1664495
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0470344{col 33}{space 2}  .029555{col 44}{space 1}   -1.59{col 53}{space 3}0.112{col 61}{space 4}-.1050622{col 74}{space 3} .0109935
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8608691{col 33}{space 2} .0681509{col 44}{space 1}   12.63{col 53}{space 3}0.000{col 61}{space 4} .7270624{col 74}{space 3} .9946758
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(VCP_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:VCP_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2         {txt}{c |}
{space 4}VCP_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0620699{col 26}{space 2} .0560338{col 37}{space 1}   -1.11{col 46}{space 3}0.268{col 54}{space 4}-.1720859{col 67}{space 3} .0479461
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2}-.0784688{col 26}{space 2}  .063608{col 37}{space 1}   -1.23{col 46}{space 3}0.218{col 54}{space 4}-.2033559{col 67}{space 3} .0464183
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Quality", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:VCP_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. reg Vote i.T1##i.VCP_dich  i.T2##i.VCP_dich  i.T3##i.VCP_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.61
                                                {txt}Prob > F          = {res}    0.0029
                                                {txt}R-squared         = {res}    0.0343
                                                {txt}Root MSE          =    {res} .38978

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0534957{col 33}{space 2} .0521226{col 44}{space 1}   -1.03{col 53}{space 3}0.305{col 61}{space 4}-.1558325{col 74}{space 3} .0488411
{txt}{space 19} {c |}
{space 11}VCP_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0168141{col 33}{space 2} .0554607{col 44}{space 1}   -0.30{col 53}{space 3}0.762{col 61}{space 4} -.125705{col 74}{space 3} .0920769
{txt}{space 19} {c |}
{space 8}T1#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}  .023238{col 33}{space 2} .0831001{col 44}{space 1}    0.28{col 53}{space 3}0.780{col 61}{space 4}-.1399197{col 74}{space 3} .1863957
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0620699{col 33}{space 2} .0560338{col 44}{space 1}   -1.11{col 53}{space 3}0.268{col 61}{space 4}-.1720859{col 74}{space 3} .0479461
{txt}{space 19} {c |}
{space 8}T2#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0163988{col 33}{space 2} .0846189{col 44}{space 1}   -0.19{col 53}{space 3}0.846{col 61}{space 4}-.1825385{col 74}{space 3} .1497408
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2}-.0628729{col 33}{space 2} .0547913{col 44}{space 1}   -1.15{col 53}{space 3}0.252{col 61}{space 4}-.1704495{col 74}{space 3} .0447036
{txt}{space 19} {c |}
{space 8}T3#VCP_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} .1572697{col 33}{space 2} .0770783{col 44}{space 1}    2.04{col 53}{space 3}0.042{col 61}{space 4} .0059351{col 74}{space 3} .3086043
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0372566{col 33}{space 2} .0413151{col 44}{space 1}    0.90{col 53}{space 3}0.367{col 61}{space 4} -.043861{col 74}{space 3} .1183741
{txt}{space 13}major2 {c |}{col 21}{res}{space 2}  .018957{col 33}{space 2} .0371295{col 44}{space 1}    0.51{col 53}{space 3}0.610{col 61}{space 4}-.0539425{col 74}{space 3} .0918566
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1089297{col 33}{space 2} .0292962{col 44}{space 1}    3.72{col 53}{space 3}0.000{col 61}{space 4}   .05141{col 74}{space 3} .1664495
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0470344{col 33}{space 2}  .029555{col 44}{space 1}   -1.59{col 53}{space 3}0.112{col 61}{space 4}-.1050622{col 74}{space 3} .0109935
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8608691{col 33}{space 2} .0681509{col 44}{space 1}   12.63{col 53}{space 3}0.000{col 61}{space 4} .7270624{col 74}{space 3} .9946758
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(VCP_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:VCP_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3        {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3         {txt}{c |}
{space 4}VCP_dich {c |}
{space 9}No  {c |}{col 14}{res}{space 2}-.0628729{col 26}{space 2} .0547913{col 37}{space 1}   -1.15{col 46}{space 3}0.252{col 54}{space 4}-.1704495{col 67}{space 3} .0447036
{txt}{space 8}Yes  {c |}{col 14}{res}{space 2} .0943967{col 26}{space 2} .0545765{col 37}{space 1}    1.73{col 46}{space 3}0.084{col 54}{space 4}-.0127582{col 67}{space 3} .2015516
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Policy Objectives", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:VCP_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Non-Party Candidates", size(medium) position(6)) subtitle("Conditional Average Treatment Effects", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\AppendixL3.gph", replace
{res}{txt}file {bf:Figures\AppendixL3.gph} saved

{com}. graph export "Figures\AppendixL3.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixL3.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. /***********************************************************************************************************/
. /***********************************************************************************************************/
. /*Appendix L4 Effects of Having Woman Candidate on Ballot*/
. /*VNA incumbency*/
. generate Incumbent_dich=0
{txt}
{com}. replace Incumbent_dich=1 if IncumbentVNA>1 & IncumbentVNA !=.
{txt}(330 real changes made)

{com}. lab var Incumbent_dich "Incumbent VNA member=1"
{txt}
{com}. label define Incumbent_dich 1 "Yes" 0 "No",replace
{txt}
{com}. label val Incumbent_dich Incumbent_dich
{txt}
{com}. 
. 
. /*Interaction*/
. reg Vote i.T1##i.Incumbent_dich  i.T2##i.Incumbent_dich  i.T3##i.Incumbent_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.29
                                                {txt}Prob > F          = {res}    0.0095
                                                {txt}R-squared         = {res}    0.0330
                                                {txt}Root MSE          =    {res} .39004

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0094818{col 33}{space 2} .0554094{col 44}{space 1}   -0.17{col 53}{space 3}0.864{col 61}{space 4} -.118272{col 74}{space 3} .0993083
{txt}{space 19} {c |}
{space 5}Incumbent_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0067821{col 33}{space 2} .0551587{col 44}{space 1}   -0.12{col 53}{space 3}0.902{col 61}{space 4}-.1150799{col 74}{space 3} .1015158
{txt}{space 19} {c |}
{space 2}T1#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0660966{col 33}{space 2} .0814905{col 44}{space 1}   -0.81{col 53}{space 3}0.418{col 61}{space 4}-.2260941{col 74}{space 3} .0939009
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0578321{col 33}{space 2} .0570086{col 44}{space 1}   -1.01{col 53}{space 3}0.311{col 61}{space 4}-.1697621{col 74}{space 3} .0540979
{txt}{space 19} {c |}
{space 2}T2#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.029837{col 33}{space 2} .0843635{col 44}{space 1}   -0.35{col 53}{space 3}0.724{col 61}{space 4}-.1954752{col 74}{space 3} .1358012
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0527772{col 33}{space 2} .0510213{col 44}{space 1}    1.03{col 53}{space 3}0.301{col 61}{space 4}-.0473974{col 74}{space 3} .1529518
{txt}{space 19} {c |}
{space 2}T3#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0987642{col 33}{space 2} .0792523{col 44}{space 1}   -1.25{col 53}{space 3}0.213{col 61}{space 4}-.2543672{col 74}{space 3} .0568387
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0439252{col 33}{space 2} .0412539{col 44}{space 1}    1.06{col 53}{space 3}0.287{col 61}{space 4}-.0370722{col 74}{space 3} .1249227
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0280016{col 33}{space 2} .0367896{col 44}{space 1}    0.76{col 53}{space 3}0.447{col 61}{space 4}-.0442306{col 74}{space 3} .1002338
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1134011{col 33}{space 2}  .029433{col 44}{space 1}    3.85{col 53}{space 3}0.000{col 61}{space 4} .0556127{col 74}{space 3} .1711896
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0483089{col 33}{space 2} .0297199{col 44}{space 1}   -1.63{col 53}{space 3}0.105{col 61}{space 4}-.1066607{col 74}{space 3} .0100429
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8505886{col 33}{space 2}  .067933{col 44}{space 1}   12.52{col 53}{space 3}0.000{col 61}{space 4} .7172097{col 74}{space 3} .9839674
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T1) by(Incumbent_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T1}{p_end}
{p2col:Over:}{res:Incumbent_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28} Delta-method
{col 16}{c |}      dy/dx{col 28}   std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T1          {col 16}{txt}{c |}  (base outcome)
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T1           {txt}{c |}
Incumbent_dich {c |}
{space 11}No  {c |}{col 16}{res}{space 2}-.0094818{col 28}{space 2} .0554094{col 39}{space 1}   -0.17{col 48}{space 3}0.864{col 56}{space 4} -.118272{col 69}{space 3} .0993083
{txt}{space 10}Yes  {c |}{col 16}{res}{space 2}-.0755784{col 28}{space 2} .0596085{col 39}{space 1}   -1.27{col 48}{space 3}0.205{col 56}{space 4} -.192613{col 69}{space 3} .0414561
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 80}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T1: Civic Education", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:Incumbent_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T1.gph", replace
{res}{txt}file {bf:Figures\margins_T1.gph} saved

{com}. 
. reg Vote i.T1##i.Incumbent_dich  i.T2##i.Incumbent_dich  i.T3##i.Incumbent_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.29
                                                {txt}Prob > F          = {res}    0.0095
                                                {txt}R-squared         = {res}    0.0330
                                                {txt}Root MSE          =    {res} .39004

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0094818{col 33}{space 2} .0554094{col 44}{space 1}   -0.17{col 53}{space 3}0.864{col 61}{space 4} -.118272{col 74}{space 3} .0993083
{txt}{space 19} {c |}
{space 5}Incumbent_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0067821{col 33}{space 2} .0551587{col 44}{space 1}   -0.12{col 53}{space 3}0.902{col 61}{space 4}-.1150799{col 74}{space 3} .1015158
{txt}{space 19} {c |}
{space 2}T1#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0660966{col 33}{space 2} .0814905{col 44}{space 1}   -0.81{col 53}{space 3}0.418{col 61}{space 4}-.2260941{col 74}{space 3} .0939009
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0578321{col 33}{space 2} .0570086{col 44}{space 1}   -1.01{col 53}{space 3}0.311{col 61}{space 4}-.1697621{col 74}{space 3} .0540979
{txt}{space 19} {c |}
{space 2}T2#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.029837{col 33}{space 2} .0843635{col 44}{space 1}   -0.35{col 53}{space 3}0.724{col 61}{space 4}-.1954752{col 74}{space 3} .1358012
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0527772{col 33}{space 2} .0510213{col 44}{space 1}    1.03{col 53}{space 3}0.301{col 61}{space 4}-.0473974{col 74}{space 3} .1529518
{txt}{space 19} {c |}
{space 2}T3#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0987642{col 33}{space 2} .0792523{col 44}{space 1}   -1.25{col 53}{space 3}0.213{col 61}{space 4}-.2543672{col 74}{space 3} .0568387
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0439252{col 33}{space 2} .0412539{col 44}{space 1}    1.06{col 53}{space 3}0.287{col 61}{space 4}-.0370722{col 74}{space 3} .1249227
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0280016{col 33}{space 2} .0367896{col 44}{space 1}    0.76{col 53}{space 3}0.447{col 61}{space 4}-.0442306{col 74}{space 3} .1002338
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1134011{col 33}{space 2}  .029433{col 44}{space 1}    3.85{col 53}{space 3}0.000{col 61}{space 4} .0556127{col 74}{space 3} .1711896
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0483089{col 33}{space 2} .0297199{col 44}{space 1}   -1.63{col 53}{space 3}0.105{col 61}{space 4}-.1066607{col 74}{space 3} .0100429
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8505886{col 33}{space 2}  .067933{col 44}{space 1}   12.52{col 53}{space 3}0.000{col 61}{space 4} .7172097{col 74}{space 3} .9839674
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T2) by(Incumbent_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T2}{p_end}
{p2col:Over:}{res:Incumbent_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28} Delta-method
{col 16}{c |}      dy/dx{col 28}   std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T2          {col 16}{txt}{c |}  (base outcome)
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T2           {txt}{c |}
Incumbent_dich {c |}
{space 11}No  {c |}{col 16}{res}{space 2}-.0578321{col 28}{space 2} .0570086{col 39}{space 1}   -1.01{col 48}{space 3}0.311{col 56}{space 4}-.1697621{col 69}{space 3} .0540979
{txt}{space 10}Yes  {c |}{col 16}{res}{space 2}-.0876692{col 28}{space 2} .0624387{col 39}{space 1}   -1.40{col 48}{space 3}0.161{col 56}{space 4}-.2102606{col 69}{space 3} .0349223
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 80}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T2: Candidate Quality", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:Incumbent_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T2.gph", replace
{res}{txt}file {bf:Figures\margins_T2.gph} saved

{com}. 
. reg Vote i.T1##i.Incumbent_dich  i.T2##i.Incumbent_dich  i.T3##i.Incumbent_dich   major1 major2 HCMC Question , robust

{txt}Linear regression                               Number of obs     = {res}       706
                                                {txt}F(11, 694)        =  {res}     2.29
                                                {txt}Prob > F          = {res}    0.0095
                                                {txt}R-squared         = {res}    0.0330
                                                {txt}Root MSE          =    {res} .39004

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}               Vote{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.T1 {c |}{col 21}{res}{space 2}-.0094818{col 33}{space 2} .0554094{col 44}{space 1}   -0.17{col 53}{space 3}0.864{col 61}{space 4} -.118272{col 74}{space 3} .0993083
{txt}{space 19} {c |}
{space 5}Incumbent_dich {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0067821{col 33}{space 2} .0551587{col 44}{space 1}   -0.12{col 53}{space 3}0.902{col 61}{space 4}-.1150799{col 74}{space 3} .1015158
{txt}{space 19} {c |}
{space 2}T1#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0660966{col 33}{space 2} .0814905{col 44}{space 1}   -0.81{col 53}{space 3}0.418{col 61}{space 4}-.2260941{col 74}{space 3} .0939009
{txt}{space 19} {c |}
{space 15}1.T2 {c |}{col 21}{res}{space 2}-.0578321{col 33}{space 2} .0570086{col 44}{space 1}   -1.01{col 53}{space 3}0.311{col 61}{space 4}-.1697621{col 74}{space 3} .0540979
{txt}{space 19} {c |}
{space 2}T2#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2} -.029837{col 33}{space 2} .0843635{col 44}{space 1}   -0.35{col 53}{space 3}0.724{col 61}{space 4}-.1954752{col 74}{space 3} .1358012
{txt}{space 19} {c |}
{space 15}1.T3 {c |}{col 21}{res}{space 2} .0527772{col 33}{space 2} .0510213{col 44}{space 1}    1.03{col 53}{space 3}0.301{col 61}{space 4}-.0473974{col 74}{space 3} .1529518
{txt}{space 19} {c |}
{space 2}T3#Incumbent_dich {c |}
{space 13}1#Yes  {c |}{col 21}{res}{space 2}-.0987642{col 33}{space 2} .0792523{col 44}{space 1}   -1.25{col 53}{space 3}0.213{col 61}{space 4}-.2543672{col 74}{space 3} .0568387
{txt}{space 19} {c |}
{space 13}major1 {c |}{col 21}{res}{space 2} .0439252{col 33}{space 2} .0412539{col 44}{space 1}    1.06{col 53}{space 3}0.287{col 61}{space 4}-.0370722{col 74}{space 3} .1249227
{txt}{space 13}major2 {c |}{col 21}{res}{space 2} .0280016{col 33}{space 2} .0367896{col 44}{space 1}    0.76{col 53}{space 3}0.447{col 61}{space 4}-.0442306{col 74}{space 3} .1002338
{txt}{space 15}HCMC {c |}{col 21}{res}{space 2} .1134011{col 33}{space 2}  .029433{col 44}{space 1}    3.85{col 53}{space 3}0.000{col 61}{space 4} .0556127{col 74}{space 3} .1711896
{txt}Questionnaire_order {c |}{col 21}{res}{space 2}-.0483089{col 33}{space 2} .0297199{col 44}{space 1}   -1.63{col 53}{space 3}0.105{col 61}{space 4}-.1066607{col 74}{space 3} .0100429
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8505886{col 33}{space 2}  .067933{col 44}{space 1}   12.52{col 53}{space 3}0.000{col 61}{space 4} .7172097{col 74}{space 3} .9839674
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(T3) by(Incumbent_dich ) level(95)
{res}
{txt}{col 1}Average marginal effects{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:706}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.T3}{p_end}
{p2col:Over:}{res:Incumbent_dich}{p_end}
{p2colreset}{...}

{res}{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28} Delta-method
{col 16}{c |}      dy/dx{col 28}   std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.T3          {col 16}{txt}{c |}  (base outcome)
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.T3           {txt}{c |}
Incumbent_dich {c |}
{space 11}No  {c |}{col 16}{res}{space 2} .0527772{col 28}{space 2} .0510213{col 39}{space 1}    1.03{col 48}{space 3}0.301{col 56}{space 4}-.0473974{col 69}{space 3} .1529518
{txt}{space 10}Yes  {c |}{col 16}{res}{space 2}-.0459871{col 28}{space 2} .0607223{col 39}{space 1}   -0.76{col 48}{space 3}0.449{col 56}{space 4}-.1652086{col 69}{space 3} .0732344
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 80}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, recast(scatter) xtitle("", size(medium)) ytitle("", size(medium)) title("T3: Policy Objectives", position(12) span) yline(0, lcolor(red) lpattern(dash) lwidth(thin))  ciopts(lcolor(navy) lwidth(medthick))
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:Incumbent_dich}{p_end}
{res}{txt}
{com}. graph save "Figures\margins_T3.gph", replace
{res}{txt}file {bf:Figures\margins_T3.gph} saved

{com}. 
. 
. graph combine "Figures\margins_T1.gph" "Figures\margins_T2.gph" "Figures\margins_T3.gph",xcommon imargin(tiny) title("Incumbents", size(medium) position(6)) subtitle("Conditional Average Treatment Effects", position(9) orientation(vertical) size(medium)) rows(1)  
{res}{txt}
{com}. graph save "Figures\AppendixL4.gph", replace
{res}{txt}file {bf:Figures\AppendixL4.gph} saved

{com}. graph export "Figures\AppendixL4.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figures\AppendixL4.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
{txt}end of do-file

{com}. /*************************************************************************************************/
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ejm5\Dropbox\Vietnam Election project\2021_Election\Replication\8_ReplicationLog.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 5 Sep 2025, 09:35:33
{txt}{.-}
{smcl}
{txt}{sf}{ul off}